name: PR

on:
  pull_request:
    branches: [main]


jobs:
  test:
    runs-on: ubuntu-latest
    env:
      CI: true
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-node@v4
      with:
        node-version: 20
        cache: yarn
    - run: yarn install
    - run: yarn lint
    - run: yarn run test
