-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (42 loc) · 1011 Bytes
/
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
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20
- 22
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: 'Authenticate with GCP'
uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
- name: Lint
run: npm run lint
- name: Run Tests
env:
TEST_PROJECT_ID: ${{ vars.TEST_PROJECT_ID }}
run: npm run test:ci
automerge:
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3