Kurate/.github/workflows/check.yaml

47 lines
906 B
YAML
Raw Normal View History

2022-11-23 17:51:51 +01:00
name: Check
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
2023-03-23 18:52:01 +01:00
2022-11-23 17:51:51 +01:00
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
2023-03-23 18:52:01 +01:00
- uses: pnpm/action-setup@v2
with:
version: 7
2023-03-23 18:52:01 +01:00
- name: Install dependenciess
run: pnpm install --frozen-lockfile
# - name: Download snark-artifacts
# working-directory: packages/contracts
# run: pnpm run download:snark-artifacts
- name: Test
run: pnpm --filter ui run test # FIXME: run contract tests as well
2022-11-23 17:51:51 +01:00
- name: Check the build
2023-03-23 18:52:01 +01:00
run: pnpm run check
2022-11-23 17:51:51 +01:00
- name: Code linting
2023-03-23 18:52:01 +01:00
run: pnpm run lint
- name: Check dependencies, unused code
run: pnpm run knip