Fix ESLint step in UI testing job and add CodeCov tokens (#1084)

* Add missing script line back to the `package.json`

* Set CodeCov token for coverage upload steps

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
This commit is contained in:
Kostiantyn
2024-10-03 19:03:50 +03:00
committed by GitHub
parent bf765abde4
commit 7057643b5d
2 changed files with 3 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ jobs:
uses: codecov/codecov-action@v4
if: ${{ steps.test.conclusion == 'success' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: api-${{ matrix.database }}
test-ui:
@@ -116,6 +117,7 @@ jobs:
uses: codecov/codecov-action@v4
if: ${{ steps.test.conclusion == 'success' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ui
- name: Run ESLint

View File

@@ -13,6 +13,7 @@
"mon": "nodemon",
"build": "vite build",
"lint": "eslint ./src --max-warnings 0 --config .eslintrc.js",
"lint:ci": "eslint ./src --config .eslintrc.js --no-color --fix-dry-run > eslint-report.txt",
"test": "vitest",
"test:ci": "CI=true vitest --reporter verbose --run --coverage",
"genSchemaTypes": "apollo client:codegen --target=typescript --globalTypesFile=src/__generated__/globalTypes.ts --passthroughCustomScalars && prettier --write */**/__generated__/*.ts",