Skip to content

Commit 91a2642

Browse files
udpate functions-framework-conformance action (#280)
1 parent c86d6f0 commit 91a2642

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/conformance.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,28 @@ jobs:
3232
run: npm install
3333

3434
- name: Run HTTP conformance tests
35-
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected].9
35+
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected].10
3636
with:
3737
functionType: 'http'
3838
useBuildpacks: false
3939
validateMapping: false
40-
cmd: "'npm start --prefix test/conformance -- --target=writeHttp --signature-type=http'"
40+
workingDirectory: 'test/conformance'
41+
cmd: "'npm start -- --target=writeHttp --signature-type=http'"
4142

4243
- name: Run event conformance tests
43-
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected].9
44+
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected].10
4445
with:
4546
functionType: 'legacyevent'
4647
useBuildpacks: false
4748
validateMapping: false
48-
cmd: "'npm start --prefix test/conformance -- --target=writeLegacyEvent --signature-type=event'"
49+
workingDirectory: 'test/conformance'
50+
cmd: "'npm start -- --target=writeLegacyEvent --signature-type=event'"
4951

5052
- name: Run cloudevent conformance tests
51-
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected].9
53+
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected].10
5254
with:
5355
functionType: 'cloudevent'
5456
useBuildpacks: false
5557
validateMapping: false
56-
cmd: "'npm start --prefix test/conformance -- --target=writeCloudEvent --signature-type=cloudevent'"
58+
workingDirectory: 'test/conformance'
59+
cmd: "'npm start -- --target=writeCloudEvent --signature-type=cloudevent'"

test/conformance/function.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const fs = require('fs');
2-
const fileName = '../../function_output.json';
2+
const fileName = 'function_output.json';
33

44
function writeHttp(req, res) {
55
writeJson(req.body);

0 commit comments

Comments
 (0)