-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use functions-framework-conformance action in conformance CI (#224)
* 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
Showing
1 changed file
with
38 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |