Feature/email notification center #100
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: 10 | |
| 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 | |
| - 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 |