Skip to content

Commit

Permalink
chore: add test summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
larwaa committed Mar 21, 2024
1 parent 140ce6e commit ff9aac6
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Run Unit Tests
run: pnpm run test:ci --collect-coverage --shard ${{ matrix.shard }}/2
run: pnpm run test:ci --collect-coverage --shard ${{ matrix.shard }}/2 --reporters="jest-junit" --reporters="default"

- name: Upload Coverage
uses: codecov/codecov-action@v4
Expand All @@ -53,6 +53,13 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage/unit
flags: unittests,node

- name: Action Summary
if: always()
uses: test-summary/action@v2
with:
paths: |
junit.xml
unit-test:
# Summary of all test shards
Expand Down Expand Up @@ -222,7 +229,7 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Run Integration Tests
run: pnpm test:integration:ci --collect-coverage --shard ${{ matrix.shard }}/4
run: pnpm test:integration:ci --collect-coverage --shard ${{ matrix.shard }}/4 --reporters="jest-junit" --reporters="default"

- name: Upload Coverage
uses: codecov/codecov-action@v4
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,6 @@ dump.rdb
src/graphql/test-clients/integration/**
src/graphql/test-clients/unit/**
*.generated.ts

# Test reporters
junit.xml
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"concurrently": "^8.2.2",
"dotenv-cli": "^7.4.1",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"jest-mock-extended": "^3.0.5",
"nodemon": "^3.1.0",
"npm-run-all": "^4.1.5",
Expand Down
24 changes: 23 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff9aac6

Please sign in to comment.