[pull] main from hoppscotch:main #927
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.js CI | |
| on: | |
| push: | |
| branches: [main, next, patch] | |
| pull_request: | |
| branches: [main, next, patch] | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Pinned to Node.js 22 to maintain compatibility with isolated-vm v5.x | |
| # Node.js 24 requires isolated-vm v6+ due to V8 API changes | |
| # TODO: Upgrade to isolated-vm v6 and support Node.js 24 in future dependency update cycle | |
| node-version: ["22"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup environment | |
| run: mv .env.example .env | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 8 | |
| run_install: true | |
| - name: Run tests | |
| run: pnpm test |