mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-01-01 10:40:37 -05:00
Bump dependencies and account for breaking changes. --------- Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
46 lines
1.0 KiB
YAML
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
|