-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (34 loc) · 928 Bytes
/
test.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
name: Test
on:
pull_request_target:
push:
branches:
- main
jobs:
test-all:
runs-on: ubuntu-latest
steps:
- name: Check access
if: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' }}
run: |
echo "Event not triggered by a collaborator."
exit 1
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: GCloud auth
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.BIGQUERY_KEY }}'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install
run: npm ci --loglevel error
- name: Build and Test
run: |
npm run lint
npm run build
npm run test-silent
npm run test-silent-e2e