1
1
name : Node.js Conformance CI
2
- on :
2
+ on :
3
3
push :
4
4
branches :
5
5
- master
@@ -13,36 +13,44 @@ jobs:
13
13
steps :
14
14
- name : Checkout code
15
15
uses : actions/checkout@v2
16
+
16
17
- name : Setup Go
17
18
uses : actions/setup-go@v2
18
19
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
+
22
34
- name : Run HTTP conformance tests
23
35
uses :
GoogleCloudPlatform/functions-framework-conformance/[email protected]
24
36
with :
25
37
functionType : ' http'
38
+ useBuildpacks : false
26
39
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
+
31
42
- name : Run event conformance tests
32
43
uses :
GoogleCloudPlatform/functions-framework-conformance/[email protected]
33
44
with :
34
45
functionType : ' legacyevent'
46
+ useBuildpacks : false
35
47
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
+
40
50
- name : Run cloudevent conformance tests
41
51
uses :
GoogleCloudPlatform/functions-framework-conformance/[email protected]
42
52
with :
43
53
functionType : ' cloudevent'
54
+ useBuildpacks : false
44
55
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'"
0 commit comments