Skip to content

Commit

Permalink
ci: store unit test results
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 13, 2023
1 parent 5ee9af6 commit 788a556
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Store Lint Results
uses: actions/upload-artifact@v3
with:
name: test-output
name: lint-output
path: ./test-results/*
- name: Cache node_modules
id: cache-nodemodules
Expand Down Expand Up @@ -74,6 +74,7 @@ jobs:
runs-on: ubuntu-latest
env:
JEST_JUNIT_OUTPUT_NAME: unit-results.xml
JEST_JUNIT_OUTPUT_DIR: test-results/unit
steps:
- uses: actions/checkout@v4
- name: Cache NPM dependencies
Expand All @@ -84,6 +85,11 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Run Unit Tests
run: npm run test:unit -- --reporters="default" --reporters="jest-junit" --coverage --coverageReporters=text --coverageReporters=lcov --maxWorkers="2"
- name: Store Unit Test Results
uses: actions/upload-artifact@v3
with:
name: unit-test-output
path: ./test-results/*
build:
needs: setup
env:
Expand Down

0 comments on commit 788a556

Please sign in to comment.