Ci coverage (#1099)

## 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 <garsvog1@gmail.com>
Co-authored-by: Théodore Léon <corentin.noel56@gmail.com>
Co-authored-by: evanpelle <evanpelle@gmail.com>
Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
Scott Anderson
2025-06-08 03:09:28 -04:00
committed by evanpelle
parent fd5a463b66
commit 293b6185b9
+10 -1
View File
@@ -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