From 47d151322411c25ef17e91d95254c4718f89a0f6 Mon Sep 17 00:00:00 2001 From: Haff Date: Tue, 27 Feb 2024 12:01:50 -0500 Subject: [PATCH] check per module --- .github/workflows/unit-test.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index ca18bce7..08398171 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -61,19 +61,19 @@ jobs: env: TEST_USER: ${{ steps.json.outputs.encoded }} - name: Report Auth Coverage - if: ${{ ${input.modules}.changed-files.outputs.test_all_changed_files }} + if: steps.changed-files.outputs.auth_all_changed_files uses: davelosert/vitest-coverage-report-action@v2 with: name: 'Auth' working-directory: 'packages/auth' - name: Report Common Coverage - if: steps.changed-files.outputs.auth_any_changed == 'true' + if: steps.changed-files.outputs.common_all_changed_files uses: davelosert/vitest-coverage-report-action@v2 with: name: 'Common' working-directory: 'packages/common' - name: Report Event-Producer Coverage - if: ${{ needs.check-changes.outputs.modules != '' && toJson(fromJson(needs.check-changes.outputs.modules)) != '[]' }} + if: steps.changed-files.outputs.event-producer_all_changed_files uses: davelosert/vitest-coverage-report-action@v2 with: name: 'Event Producer' @@ -82,13 +82,19 @@ jobs: working-directory: 'packages/event-producer' vite-config-path: 'packages/event-producer/vite.config.ts' - name: Report Player-Web-Components Coverage - if: ${{ needs.check-changes.outputs.modules != '' && toJson(fromJson(needs.check-changes.outputs.modules)) != '[]' }} + if: steps.changed-files.outputs.player-web-components_all_changed_files uses: davelosert/vitest-coverage-report-action@v2 with: name: 'Player Web Components' working-directory: 'packages/player-web-components' + - name: Report Template Coverage + if: steps.changed-files.outputs.template_all_changed_files + uses: davelosert/vitest-coverage-report-action@v2 + with: + name: 'Template' + working-directory: 'packages/template' - name: Report True-Time Coverage - if: ${{ needs.check-changes.outputs.modules != '' && toJson(fromJson(needs.check-changes.outputs.modules)) != '[]' }} + if: steps.changed-files.outputs.true-time_all_changed_files uses: davelosert/vitest-coverage-report-action@v2 with: name: 'True Time'