From 7057643b5d21f2f06dbd431e88f2a44a84f84621 Mon Sep 17 00:00:00 2001 From: Kostiantyn <32730812+kkovaletp@users.noreply.github.com> Date: Thu, 3 Oct 2024 19:03:50 +0300 Subject: [PATCH] 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 --- .github/workflows/tests.yml | 2 ++ ui/package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bc669bd5..88e42b33 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/ui/package.json b/ui/package.json index 2a4a21ad..201ae655 100644 --- a/ui/package.json +++ b/ui/package.json @@ -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",