diff --git a/.github/workflows/coverage-test-report.yml b/.github/workflows/coverage-test-report.yml new file mode 100644 index 000000000..f20bd1444 --- /dev/null +++ b/.github/workflows/coverage-test-report.yml @@ -0,0 +1,24 @@ +name: TEST + +on: + # Triggers the workflow on push or pull request events but only for the main branch + pull_request: + branches: [main, 'main-ee', release*, 'temporary/**'] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + jobs: + cache-and-install: + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[skip ci]')" + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: ArtiomTr/jest-coverage-report-action@v2 + name: Coverage test report + with: + github-token: ${{ secrets.SECRET_TOKEN }} + test-script: pnpm test:ci + package-manager: pnpm diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8535c2c66..e0aabcecf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,10 +45,3 @@ jobs: - name: Code lint checker run: pnpm checker - - - uses: ArtiomTr/jest-coverage-report-action@v2 - name: Coverage test report - run: pnpm install - with: - github-token: ${{ secrets.SECRET_TOKEN }} - test-script: pnpm test:ci