File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 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
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-
You can’t perform that action at this time.
0 commit comments