Modernize action: upgrade to Node 24, migrate to pnpm, update all dep… #8
Workflow file for this run
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: "Test" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: ".tool-versions" | |
| cache: "pnpm" | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Verify | |
| run: | | |
| pnpm run build | |
| # Fail if "pnpm run build" generated new changes in dist | |
| git update-index --refresh dist/* && git diff-index --quiet HEAD dist | |
| - name: Test | |
| run: pnpm test |