Skip to content

Commit

Permalink
Use functions-framework-conformance action in conformance CI (#224)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hdp617 authored Oct 19, 2020
1 parent 0726a2d commit 01b7df3
Showing 1 changed file with 38 additions and 15 deletions.
53 changes: 38 additions & 15 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,44 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
runtime: ['nodejs10', 'nodejs12', 'nodejs14']
steps:
- uses: actions/setup-go@v2
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.14'
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
go-version: '1.13'
- name: Run HTTP conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build TypeScript project
run: npm run build --if-present
- name: Test
run: npm run test-conformance
env:
CI: true
functionType: 'http'
validateMapping: false
source: 'test/conformance'
target: 'writeHttp'
runtime: ${{ matrix.runtime }}
# TODO: Remove when tag :latest is enabled.
tag: '${{ matrix.runtime }}_20201005_20_RC00'
startDelay: 10
- name: Run event conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
with:
functionType: 'legacyevent'
validateMapping: false
source: 'test/conformance'
target: 'writeLegacyEvent'
runtime: ${{ matrix.runtime }}
# TODO: Remove when tag :latest is enabled.
tag: '${{ matrix.runtime }}_20201005_20_RC00'
startDelay: 10
- name: Run cloudevent conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
with:
functionType: 'cloudevent'
validateMapping: false
source: 'test/conformance'
target: 'writeCloudEvent'
runtime: ${{ matrix.runtime }}
# TODO: Remove when tag :latest is enabled.
tag: '${{ matrix.runtime }}_20201005_20_RC00'
startDelay: 10

0 comments on commit 01b7df3

Please sign in to comment.