forked from Ethereal-Future/FuTuRe
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 957 Bytes
/
Copy pathapi-testing.yml
File metadata and controls
38 lines (31 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.3.0
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