-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (60 loc) · 2.09 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
id-token: write
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run Unit Tests
run: make test-unit
smoke-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Google Cloud Auth
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
with:
project_id: "groovy-momentum-434802-g9"
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
- name: Adjust permissions of GCP credentials file
# allows user in the docker container used by smoke tests to read the file
run: chmod 644 "$GOOGLE_APPLICATION_CREDENTIALS"
- name: Run Smoke Tests
run: make test-smoke
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Google Cloud Auth
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
with:
project_id: "groovy-momentum-434802-g9"
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
- name: Adjust permissions of GCP credentials file
# allows user in the docker container used by e2e tests to read the file
run: chmod 644 "$GOOGLE_APPLICATION_CREDENTIALS"
- name: Run E2E Tests
run: make test-e2e
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Node deps
run: npm --prefix ui ci
- name: Lint
run: |
if ! make lint; then
echo "Linting failed. Try running \`make lint-fix\` to automatically resolve the linting errors."
exit 1
fi