Kurate/.github/workflows/check.yaml

42 lines
941 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
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install npm deps
# Hardhat is missing some dependencies on linux due to https://github.com/npm/cli/issues/4828
run: rm -rf package-lock.json && npm install
- name: Install browser runners
run: npx playwright install
- name: Download snark-artifacts
run: npm run download:snark-artifacts --workspaces --if-present
- name: Test
run: npm run test --workspaces --if-present
2022-11-23 17:51:51 +01:00
- name: Check the build
2022-12-15 22:34:33 +01:00
run: npm run check --workspaces --if-present
2022-11-23 17:51:51 +01:00
- name: Code linting
2022-12-15 22:34:33 +01:00
run: npm run lint --workspaces --if-present