Skip to content

Merge pull request #379 from GoodnessJohn/fix/215-217-221-222-bug-fixes #64

Merge pull request #379 from GoodnessJohn/fix/215-217-221-222-bug-fixes

Merge pull request #379 from GoodnessJohn/fix/215-217-221-222-bug-fixes #64

Workflow file for this run

name: API Testing
on:
push:
branches: [main, 'feature/**']
pull_request:
branches: [main]
jobs:
api-tests:
name: API Contract & Performance Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run API tests
run: npx vitest run backend/tests/api-testing.test.js --reporter=verbose
env:
NODE_ENV: test
STELLAR_NETWORK: testnet
HORIZON_URL: https://horizon-testnet.stellar.org
- name: Upload API test report
if: always()
uses: actions/upload-artifact@v4
with:
name: api-test-report-${{ github.sha }}
path: test-reports/
retention-days: 14