Skip to content

Fix/merge conflicts #60

Fix/merge conflicts

Fix/merge conflicts #60

name: Pre-commit checks
on:
pull_request:
branches: ["*"]
jobs:
pre-commit-checks:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.11.1
- name: Cache Node.js dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: yarn
- name: Type check
run: yarn check-types
- name: Lint check
run: yarn check-lint
- name: Prettier check
run: yarn check-format
- name: Run tests
run: yarn test