Skip to content

Commit c86d6f0

Browse files
clean up conformance.yml (#279)
1 parent f67d11d commit c86d6f0

File tree

6 files changed

+50
-5414
lines changed

6 files changed

+50
-5414
lines changed

.github/workflows/conformance.yml

+24-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Node.js Conformance CI
2-
on:
2+
on:
33
push:
44
branches:
55
- master
@@ -13,36 +13,44 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16+
1617
- name: Setup Go
1718
uses: actions/setup-go@v2
1819
with:
19-
go-version: '1.13'
20-
- name: Setup test data
21-
run: "./test/conformance/set_up_conformance_tests.sh"
20+
go-version: '1.15'
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Build Functions Framework
28+
run: npm ci
29+
30+
- name: Build test project
31+
working-directory: ./test/conformance
32+
run: npm install
33+
2234
- name: Run HTTP conformance tests
2335
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
2436
with:
2537
functionType: 'http'
38+
useBuildpacks: false
2639
validateMapping: false
27-
source: 'test/conformance'
28-
target: 'writeHttp'
29-
runtime: ${{ matrix.runtime }}
30-
startDelay: 10
40+
cmd: "'npm start --prefix test/conformance -- --target=writeHttp --signature-type=http'"
41+
3142
- name: Run event conformance tests
3243
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
3344
with:
3445
functionType: 'legacyevent'
46+
useBuildpacks: false
3547
validateMapping: false
36-
source: 'test/conformance'
37-
target: 'writeLegacyEvent'
38-
runtime: ${{ matrix.runtime }}
39-
startDelay: 10
48+
cmd: "'npm start --prefix test/conformance -- --target=writeLegacyEvent --signature-type=event'"
49+
4050
- name: Run cloudevent conformance tests
4151
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
4252
with:
4353
functionType: 'cloudevent'
54+
useBuildpacks: false
4455
validateMapping: false
45-
source: 'test/conformance'
46-
target: 'writeCloudEvent'
47-
runtime: ${{ matrix.runtime }}
48-
startDelay: 10
56+
cmd: "'npm start --prefix test/conformance -- --target=writeCloudEvent --signature-type=cloudevent'"

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ npm-debug.log
88
.DS_Store
99
yarn.lock
1010
yarn-error.log
11+
function_output.json
12+
serverlog_stderr.txt
13+
serverlog_stdout.txt

0 commit comments

Comments
 (0)