[pull] main from hoppscotch:main #929
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 due to known test failures on Node.js 24. | |
| # Future TODO: Investigate test failures and move to Node.js 24 (Active LTS). | |
| 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: 10 | |
| run_install: false | |
| - name: Install dependencies | |
| run: pnpm install | |
| env: | |
| DATABASE_URL: postgresql://postgres:testpass@localhost:5432/hoppscotch | |
| DATA_ENCRYPTION_KEY: "12345678901234567890123456789012" | |
| - name: Run tests | |
| run: pnpm test |