From 8eeec9a4de7a70fb345fbec024bd5ad31c17c58c Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Thu, 25 Apr 2024 16:40:42 -0700 Subject: [PATCH 1/3] initial commit --- .github/workflows/ci-frontend.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index a92dce74f..5db886059 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -46,8 +46,13 @@ jobs: - name: Run format run: npm run format-check - - name: Run tests - run: npm run test + - run: npm run test -- --testLocationInResults --json --outputFile=coverage/report.json + - uses: ArtiomTr/jest-coverage-report-action@v2 + with: + coverage-file: coverage/report.json + test-script: npm test + working-directory: ./ + annotations: failed-tests - name: Run e2e tests run: npm run test:e2e From b841db1c78446071028ca312cc1dd81a6d5c3c39 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Thu, 25 Apr 2024 16:50:46 -0700 Subject: [PATCH 2/3] update paths --- .github/workflows/ci-frontend.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index 5db886059..aa2c82979 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -49,9 +49,9 @@ jobs: - run: npm run test -- --testLocationInResults --json --outputFile=coverage/report.json - uses: ArtiomTr/jest-coverage-report-action@v2 with: - coverage-file: coverage/report.json + coverage-file: coverage/coverage-final.json test-script: npm test - working-directory: ./ + working-directory: ./frontend annotations: failed-tests - name: Run e2e tests From 978f187e9b52d3506183d4e20252fa7e17af87a2 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Thu, 25 Apr 2024 16:56:42 -0700 Subject: [PATCH 3/3] use report.json --- .github/workflows/ci-frontend.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index aa2c82979..a1e299d8c 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -49,10 +49,14 @@ jobs: - run: npm run test -- --testLocationInResults --json --outputFile=coverage/report.json - uses: ArtiomTr/jest-coverage-report-action@v2 with: - coverage-file: coverage/coverage-final.json + coverage-file: coverage/report.json test-script: npm test working-directory: ./frontend annotations: failed-tests + package-manager: npm + icons: emoji + skip-step: none + output: comment - name: Run e2e tests run: npm run test:e2e