Skip to content

feat: add BTC support survey link #879

feat: add BTC support survey link

feat: add BTC support survey link #879

Workflow file for this run

name: Run unit tests
on:
push:
branches: [develop, master]
pull_request:
types: [opened,reopened,synchronize]
jobs:
test-unit:
runs-on: ubuntu-latest
strategy:
matrix:
shard: [1, 2, 3, 4, 5, 6]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup-environment
- name: test:unit:coverage
run: yarn test:unit:coverage --shard=${{ matrix.shard }}/${{ strategy.job-total }}
- name: Rename coverage to shard coverage
run: mv coverage/coverage-final.json coverage/coverage-${{matrix.shard}}.json
- uses: actions/upload-artifact@v4
with:
name: coverage-${{matrix.shard}}
path: coverage/coverage-${{matrix.shard}}.json
report-coverage:
runs-on: ubuntu-latest
needs:
- test-unit
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download coverage from shards
uses: actions/download-artifact@v4
with:
path: coverage
pattern: coverage-*
merge-multiple: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true