Skip to content

build(deps): bump actions/checkout from 4 to 7 #260

build(deps): bump actions/checkout from 4 to 7

build(deps): bump actions/checkout from 4 to 7 #260

Workflow file for this run

name: SubStream API Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_DB: substream_test
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:7-alpine
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v7
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
cache: 'npm'
- name: Install FFmpeg
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Security Audit
run: npm audit --audit-level=high
continue-on-error: true
- name: Run tests
env:
NODE_ENV: test
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/substream_test
REDIS_URL: redis://localhost:6379
JWT_SECRET: test-jwt-secret
SOROBAN_RPC_URL: https://soroban-testnet.stellar.org
SOROBAN_NETWORK_PASSPHRASE: "Test SDF Network ; September 2015"
run: npx jest --forceExit --silent
timeout-minutes: 10