Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions composite-actions/nodejs-generic-api/test-unit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ inputs:
GCLOUD_AUTH:
description: "GCP Auth (staging)"
required: false
QODANA_TOKEN:
description: "QODANA_TOKEN"
required: true
GITHUB_TOKEN:
description: "GH token to comment on pr"
slack-channel:
description: Name of the channel to notify failing action
required: false
Expand Down Expand Up @@ -92,12 +97,15 @@ runs:
shell: bash
run: npm run test:cov

- name: Analyze with SonarCloud
uses: extenda/actions/sonar-scanner@v0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.2
with:
sonar-host: https://sonarcloud.io
service-account-key: ${{ inputs.SECRET_AUTH }}
sonar-scanner: node
post-pr-comment: true
args: --coverage-dir,.coverage,--baseline,qodana.sarif.json
github-token: ${{ inputs.GITHUB_TOKEN }}
env:
QODANA_TOKEN: ${{ inputs.QODANA_TOKEN }}


- name: Notify Slack if failed
if: ${{ github.ref == 'refs/heads/master' && failure() && inputs.notify-slack-on-fail }}
Expand Down