ci: green PRs merge and deploy themselves #25
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| # The verification that used to live inside the Vercel deploy workflow. It | |
| # belongs in its own file: prod is self-hosted on bitbaum, so the deploy | |
| # workflow is now a shim over the shared pipeline — and that pipeline refuses | |
| # to ship a commit whose CI is not green. Without this file there would be no | |
| # CI to be green, and every deploy would sail through unverified. | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify: | |
| name: Format, lint, test, build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| - run: npm ci | |
| - name: Format check | |
| run: npm run format:check --if-present | |
| - name: Lint | |
| run: npm run lint --if-present | |
| - name: Test | |
| run: npm run test --if-present | |
| - name: Build | |
| run: npm run build |