-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (50 loc) · 1.23 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
# Cancel in-progress CI runs from the same branch
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
CI: true
jobs:
lint:
name: Lint
uses: ./.github/workflows/lint.yml
build:
name: Build
uses: ./.github/workflows/build.yml
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
with:
runsOn: ${{ matrix.os }}
artifactId: cloudtruth-ci-${{ matrix.os }}
test:
name: Test
uses: ./.github/workflows/test-staging.yml
needs: [build]
concurrency: ${{ github.workflow_ref }}-${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
options: --partition hash:1/3
- os: ubuntu-latest
options: --partition hash:2/3
- os: windows-latest
options: --partition hash:3/3
with:
runsOn: ${{ matrix.os }}
artifactId: cloudtruth-ci-${{ matrix.os }}
testRunnerOptions: ${{ matrix.options }} -E 'kind(test)'
secrets:
CLOUDTRUTH_API_KEY: ${{ secrets.CT_STAGING_CI_ADMIN_API_KEY }}