Skip to content

Commit 01b7df3

Browse files
authoredOct 19, 2020
Use functions-framework-conformance action in conformance CI (#224)
* Update conformance.yml * Use the main branch to pick up the latest change. * Use conformance action v0.2.0 * Use conformance action v0.3.0 * Debug * Update conformance.yml * Update conformance.yml * Update conformance.yml * Update conformance.yml * Update conformance.yml * Update conformance.yml * Update conformance.yml * Use v0.3.1
1 parent 0726a2d commit 01b7df3

File tree

1 file changed

+38
-15
lines changed

1 file changed

+38
-15
lines changed
 

‎.github/workflows/conformance.yml

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,44 @@ jobs:
99
runs-on: ubuntu-18.04
1010
strategy:
1111
matrix:
12-
node-version: [10.x, 12.x, 14.x]
12+
runtime: ['nodejs10', 'nodejs12', 'nodejs14']
1313
steps:
14-
- uses: actions/setup-go@v2
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Setup Go
17+
uses: actions/setup-go@v2
1518
with:
16-
go-version: '1.14'
17-
- uses: actions/checkout@v2
18-
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v1
19+
go-version: '1.13'
20+
- name: Run HTTP conformance tests
21+
uses: GoogleCloudPlatform/functions-framework-conformance/action@v0.3.1
2022
with:
21-
node-version: ${{ matrix.node-version }}
22-
- name: Install dependencies
23-
run: npm install
24-
- name: Build TypeScript project
25-
run: npm run build --if-present
26-
- name: Test
27-
run: npm run test-conformance
28-
env:
29-
CI: true
23+
functionType: 'http'
24+
validateMapping: false
25+
source: 'test/conformance'
26+
target: 'writeHttp'
27+
runtime: ${{ matrix.runtime }}
28+
# TODO: Remove when tag :latest is enabled.
29+
tag: '${{ matrix.runtime }}_20201005_20_RC00'
30+
startDelay: 10
31+
- name: Run event conformance tests
32+
uses: GoogleCloudPlatform/functions-framework-conformance/action@v0.3.1
33+
with:
34+
functionType: 'legacyevent'
35+
validateMapping: false
36+
source: 'test/conformance'
37+
target: 'writeLegacyEvent'
38+
runtime: ${{ matrix.runtime }}
39+
# TODO: Remove when tag :latest is enabled.
40+
tag: '${{ matrix.runtime }}_20201005_20_RC00'
41+
startDelay: 10
42+
- name: Run cloudevent conformance tests
43+
uses: GoogleCloudPlatform/functions-framework-conformance/action@v0.3.1
44+
with:
45+
functionType: 'cloudevent'
46+
validateMapping: false
47+
source: 'test/conformance'
48+
target: 'writeCloudEvent'
49+
runtime: ${{ matrix.runtime }}
50+
# TODO: Remove when tag :latest is enabled.
51+
tag: '${{ matrix.runtime }}_20201005_20_RC00'
52+
startDelay: 10

0 commit comments

Comments
 (0)