diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36766bd79..bcca5bbbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,8 +38,17 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + - uses: actions/create-github-app-token@v2 + id: generate-token + if: ${{ github.repository == 'openfrontio/OpenFrontIO' }} + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} - run: npm ci - - run: npm test + - name: Test coverage + uses: ArtiomTr/jest-coverage-report-action@262a7bb0b20c4d1d6b6b026af0f008f78da72788 + with: + github-token: ${{ github.repository == 'openfrontio/OpenFrontIO' && steps.generate-token.outputs.token || env.GITHUB_TOKEN }} eslint: name: 🔍 ESLint