ci: replace broken workflows with a working build/test/lint pipeline #1
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Build & test (Node ${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: yarn | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn lib:build | |
| - run: yarn lib:test | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| # Non-blocking for now: a handful of react-hooks v7 findings and one | |
| # deferred public type are still open. Drop continue-on-error once the | |
| # remaining errors are resolved to make lint a required check. | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: yarn | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn lint |