Add Qodana Cloud #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: "Qodana" | |
on: # yamllint disable-line rule:truthy | |
pull_request: null | |
push: | |
branches: | |
- "master" | |
permissions: {} # yamllint disable-line rule:braces | |
#permissions: "read-all" | |
#permissions: | |
# contents: "read" # Private repositories need read permission | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
qodana: | |
name: "Qodana Cloud" | |
runs-on: "ubuntu-22.04" | |
timeout-minutes: 10 | |
permissions: | |
checks: "write" | |
contents: "write" | |
pull-requests: "write" | |
steps: | |
- | |
name: "Checkout repository" | |
uses: "actions/[email protected]" | |
with: | |
# Check out the pull request commit, not the merge commit | |
ref: "${{ github.event.pull_request.head.sha }}" | |
fetch-depth: 0 | |
- | |
name: "Run analysis" | |
uses: "JetBrains/[email protected]" | |
env: | |
QODANA_TOKEN: "${{ secrets.QODANA_TOKEN }}" |