Skip to content

Refactor/ci-and-browser-tx-building-alignment #3

Refactor/ci-and-browser-tx-building-alignment

Refactor/ci-and-browser-tx-building-alignment #3

Workflow file for this run

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: 20
- 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