docs: migrate to the shared @coreui/astro-docs engine (#486) #21
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 }} | |
| # yarn.lock is gitignored in this repo, so there is no lockfile to pin | |
| # against or to key a cache on — install resolves from package.json. | |
| - run: yarn install --ignore-engines | |
| - 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 | |
| - run: yarn install --ignore-engines | |
| - run: yarn lint |