mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:19:18 +00:00
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:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user