-
-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (39 loc) · 1.24 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
# Authentication credentials shouldn't be needed as we stub the Secret Manager
# API service during integration tests. However, even though the client is overridden
# with a new endpoint (see src/infrastructure/secrets.ts), the client still requires
# a filled out application default credentials file to be present in order to work.
- uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_CREDENTIALS }}"
- uses: google-github-actions/setup-gcloud@v2
with:
version: ">= 363.0.0"
# Run `info` to set up default credentials
- run: yarn install --frozen-lockfile
- run: yarn e2e