Repository navigation
Ship a Node entry in the npm package #6
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: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: test-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 12 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - uses: actions/cache@v6 | |
| with: | |
| path: ~/.cache/java-web | |
| key: jdk-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/build-jdk.sh') }} | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm jdk | |
| - run: pnpm typecheck | |
| - run: pnpm test | |
| - run: pnpm build | |
| - name: Node entry on the built dist/ | |
| run: node --expose-gc --test test/image.test.ts |