feat: delightful first-run defaults — live starter sources + fun fall… #9
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: | |
| jobs: | |
| test: | |
| name: test (node ${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: ['18.x', '20.x', '22.x'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| # node-lief is an optional dependency; if it fails to install/build on a | |
| # runner that is fine — the package works without it. | |
| - run: npm ci | |
| - name: Syntax-check all sources | |
| run: node --check src/cli.js && for f in $(find src test -name '*.js'); do node --check "$f"; done | |
| - run: npm test |