-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.11 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
name: CI - testing
# run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
build:
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
# Add "id-token" with the intended permissions.
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/600519630697/locations/global/workloadIdentityPools/github-actions/providers/github-actions'
service_account: 'tester@bigquery-porter.iam.gserviceaccount.com'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v0'
- run: npm ci
- run: npm run build --if-present
- shell:
# Force allocate TTY on GitHub Action: https://github.com/actions/runner/issues/241
'script --return -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: npm test