fix(auth): return specific status codes from wallet-session, not opaque 500 #108
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: Unit Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - preprod | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| unit-tests: | |
| name: Transaction builder unit tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Use repo npm version | |
| run: npm install -g "$(node -p 'require("./package.json").packageManager')" && npm --version | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Generate Prisma client | |
| run: npx prisma generate | |
| - name: Run transaction builder tests | |
| run: npm run test:ci -- --testPathPatterns="src/__tests__/tx-builders" | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tx-builder-coverage | |
| path: coverage/ | |
| retention-days: 7 |