Skip to content

[pull] main from hoppscotch:main #929

[pull] main from hoppscotch:main

[pull] main from hoppscotch:main #929

Workflow file for this run

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