diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 44f2772f3..470a69550 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -63,6 +63,19 @@ jobs: run: | npm run test + - name: "Upload coverage results" + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: | + curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --import + curl -Os https://uploader.codecov.io/latest/linux/codecov + curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM + curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig + gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM + shasum -a 256 -c codecov.SHA256SUM + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} -s coverage + collector-lint: name: "Lint collector" runs-on: ubuntu-latest diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 0256e8f77..dd7f9c2a9 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -16,7 +16,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!react-markdown)/\"", + "test": "react-scripts test --coverage --transformIgnorePatterns \"node_modules/(?!react-markdown)/\"", "eject": "react-scripts eject" }, "eslintConfig": {