Skip to content

Commit 9d4cfb7

Browse files
committed
test cli v2
1 parent 17e44ca commit 9d4cfb7

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/codacy.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,10 @@ 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
23+
- name: Run Codacy CLI
24+
uses: codacy/codacy-cli-v2-action@main
25+
with:
26+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
3427

3528
- name: Install dependencies
3629
run: |

0 commit comments

Comments
 (0)