Update GitHub Actions workflows #560
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: Node CI | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| # --build-from-source is used to work around npm being an awful piece of software | |
| # https://github.com/npm/cli/issues/4828 | |
| # https://sharp.pixelplumbing.com/install#building-from-source | |
| run: npm install --build-from-source | |
| - name: Run tests | |
| run: npm test |