Merge pull request #376 from johnsaviour56-ship-it/fix/offline-queue-… #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |