From 293b6185b93ad34423bf0191ec60b594da5b8f20 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sun, 8 Jun 2025 03:09:28 -0400 Subject: [PATCH] Ci coverage (#1099) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Updated #935 with token. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors --------- Co-authored-by: aqw42 Co-authored-by: Théodore Léon Co-authored-by: evanpelle Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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