-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 928 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
name: CI Build/Test/Lint
on: push
jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Cache Bazel
uses: actions/cache@v3
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE') }}
restore-keys: |
${{ runner.os }}-bazel-
- uses: actions/checkout@v3
- name: Run all tests
run: bazelisk query 'tests(//... except kind(oci_*, //...))' | xargs bazelisk test
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- run: npm run build:local
- run: npm run lint
- run: npm run typecheck