Skip to content

Dart Conformance CI #1294

Dart Conformance CI

Dart Conformance CI #1294

Workflow file for this run

name: Dart Conformance CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
defaults:
run:
shell: bash
env:
PUB_ENVIRONMENT: bot.github
jobs:
conformance:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
go-version: '^1.16'
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: stable
- run: dart --version
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: dart pub upgrade
working-directory: integration_test
- name: Run HTTP conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.8.6
with:
functionType: 'http'
useBuildpacks: false
# Coordinate changes here with the documentation in `CONTRIBUTING.MD`
cmd: '"dart integration_test/bin/server.dart --target conformanceHttp"'
startDelay: 3
- name: Run CloudEvent conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.8.6
with:
functionType: 'cloudevent'
useBuildpacks: false
# Coordinate changes here with the documentation in `CONTRIBUTING.MD`
cmd: '"dart integration_test/bin/server.dart --target conformanceCloudEvent --signature-type cloudevent"'
validateMapping: false
startDelay: 3