Repository navigation
chore: ignore .specs (#3) #4
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| # The same lint + test pair the publish workflow gates on, run before the | |
| # merge rather than after the tag. Until now nothing checked a pull request, | |
| # so a change could only fail once it was already on its way to npm. | |
| # | |
| # ubuntu-latest, not a Blacksmith runner: this repo is public, so these | |
| # minutes are free, and the job is short enough that a faster runner would | |
| # save nothing worth paying for. | |
| verify: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm test |