-
Notifications
You must be signed in to change notification settings - Fork 54
59 lines (53 loc) · 1.73 KB
/
conformance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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@6849a6489940f00c2f30c0fb92c6274307ccb58a
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@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
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