Enforce the "sites" JWT claim for PACTA #338
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |