Skip to content

Commit f517f7f

Browse files
committed
resolving empty coverage
1 parent 2a04603 commit f517f7f

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/codacy.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ jobs:
2020
with:
2121
node-version: '18' # Choose your Node.js version
2222

23+
- name: Run Codacy Analysis CLI with Docker (optional)
24+
run: |
25+
export CODACY_CODE=$GITHUB_WORKSPACE
26+
docker run \
27+
--rm=true \
28+
--env CODACY_CODE="$CODACY_CODE" \
29+
--volume /var/run/docker.sock:/var/run/docker.sock \
30+
--volume "$CODACY_CODE":"$CODACY_CODE" \
31+
--volume /tmp:/tmp \
32+
codacy/codacy-analysis-cli \
33+
analyze --tool eslint --upload --project-token ${{ secrets.CODACY_PROJECT_TOKEN }} --max-allowed-issues 99999 --commit-uuid $GITHUB_SHA
34+
2335
- name: Install dependencies
2436
run: |
2537
npm install -g nyc # Install Istanbul (nyc) for code coverage
@@ -42,16 +54,3 @@ jobs:
4254
run: |
4355
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r $GITHUB_WORKSPACE/lcov.info
4456
continue-on-error: true
45-
46-
- name: Run Codacy Analysis CLI with Docker (optional)
47-
run: |
48-
export CODACY_CODE=$GITHUB_WORKSPACE
49-
docker run \
50-
--rm=true \
51-
--env CODACY_CODE="$CODACY_CODE" \
52-
--volume /var/run/docker.sock:/var/run/docker.sock \
53-
--volume "$CODACY_CODE":"$CODACY_CODE" \
54-
--volume /tmp:/tmp \
55-
codacy/codacy-analysis-cli \
56-
analyze --tool eslint --upload --project-token ${{ secrets.CODACY_PROJECT_TOKEN }} --max-allowed-issues 99999 --commit-uuid $GITHUB_SHA
57-

0 commit comments

Comments
 (0)