-
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 907 Bytes
/
build.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
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 19.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm run test-coverage
env:
GCP_TEST_PROJECT_ID: ${{ secrets.GCP_TEST_PROJECT_ID }}
GCP_TEST_EMAIL: ${{ secrets.GCP_TEST_EMAIL }}
GCP_TEST_KEY: ${{ secrets.GCP_TEST_KEY }}
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}