Files
hoppscotch/.github/workflows/tests.yml
Mir Arif Hasan 904a1b0405 chore: security patch for the dependency chain v2025.11.0 (#5590)
Bump dependencies and account for breaking changes.

---------

Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-24 14:21:29 +05:30

46 lines
1.0 KiB
YAML

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