name: PR
on: [pull_request]

jobs:
  pr:
    continue-on-error: true
    strategy:
      matrix:
        step: ['lint', 'test', 'build', 'deno']
    runs-on: ubuntu-latest
    env:
      YARN_ENABLE_SCRIPTS: false
      CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-node@v4
      with:
        node-version: 'lts/*'
    - uses: denoland/setup-deno@v1
      with:
        deno-version: vx.x.x
    - name: ${{ matrix.step }}
      if: always()
      run: |
        yarn install --immutable
        yarn ${{ matrix.step }}
