name: pre-commit on: pull_request: branches: [main] jobs: pre-commit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.0 - uses: actions/setup-node@v3 with: node-version: 16.x cache: yarn cache-dependency-path: yarn.lock - name: Build website run: yarn install --frozen-lockfile && yarn build