-
-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (47 loc) · 1.46 KB
/
qodana.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
php-version: "8.2"
coverage: "none"
-
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: "Install dependencies"
uses: "ramsey/[email protected]"
with:
dependency-versions: "highest"
-
name: "Run analysis"
uses: "JetBrains/[email protected]"
env:
QODANA_TOKEN: "${{ secrets.QODANA_TOKEN }}"