9
9
runs-on : ubuntu-18.04
10
10
strategy :
11
11
matrix :
12
- node-version : [10.x, 12.x, 14.x ]
12
+ runtime : ['nodejs10', 'nodejs12', 'nodejs14' ]
13
13
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
15
18
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
20
22
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