Skip to content

Commit

Permalink
wip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisTofani committed Dec 4, 2024
1 parent 3a0ffdb commit 55b2c7f
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/staticcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ on:
- pull_request
- workflow_call
jobs:
checks:
static-checks:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-pr-staticcheck-${{ github.head_ref || github.run_id }}-${{ matrix.shard }}
group: ${{ github.workflow }}-pr-staticcheck-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
strategy:
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps:
- id: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
Expand All @@ -21,18 +18,29 @@ jobs:
run: yarn lint
- id: run-prettier
run: yarn prettier:check
unit-test:
runs-on: ubuntu-latest
needs: static-checks
strategy:
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps:
- id: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- id: setup
uses: ./.github/actions/setup-composite
- id: run-test
run: yarn test:ci --shard=${{ matrix.shard }}/${{ strategy.job-total }}
- id: move-coverage-file
run: yarn test:ci --shard=${{ matrix.shard }}/${{ strategy.job-total }} --coverage
- id: rename-coverage-file
run: mv coverage/coverage-final.json coverage/${{matrix.shard}}.json
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: coverage-artifacts
path: coverage/
coverage:
runs-on: ubuntu-latest
environment: dev
needs: checks
needs: unit-test
steps:
- id: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
Expand Down

0 comments on commit 55b2c7f

Please sign in to comment.