diff --git a/.github/actions/run-coverage/action.yml b/.github/actions/run-coverage/action.yml index 354be5be3..2406791fc 100644 --- a/.github/actions/run-coverage/action.yml +++ b/.github/actions/run-coverage/action.yml @@ -16,15 +16,3 @@ runs: shell: bash working-directory: ${{ inputs.working-directory }} run: npm run test:coverage:ci - - # Use the action only for report generation, not for running tests - - uses: ArtiomTr/jest-coverage-report-action@262a7bb0b20c4d1d6b6b026af0f008f78da72788 # v2.3.1 - with: - output: report-markdown - coverage-file: report.json - base-coverage-file: report.json - working-directory: ${{ inputs.working-directory }} - annotations: none - skip-step: all - continue-on-error: false - diff --git a/.github/workflows/unit-test-packages.yml b/.github/workflows/unit-test-packages.yml index 678c8a21c..39bc4915d 100644 --- a/.github/workflows/unit-test-packages.yml +++ b/.github/workflows/unit-test-packages.yml @@ -16,8 +16,7 @@ jobs: os: ['ubuntu-22.04'] node: ['22', '24'] permissions: - checks: write - pull-requests: write + contents: read runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -33,15 +32,15 @@ jobs: - name: Build run: npm run build - - name: Tests - run: npm run test + - name: Test Blocks Package + run: npm test --workspace=@faustwp/blocks - - name: Code Coverage for FaustWP Core Package + - name: Test Core Package with Coverage uses: ./.github/actions/run-coverage with: working-directory: packages/faustwp-core - - name: Code Coverage for FaustWP CLI Package + - name: Test CLI Package with Coverage uses: ./.github/actions/run-coverage with: working-directory: packages/faustwp-cli