This repository was archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.59 KB
/
Copy pathcode_quality.yml
File metadata and controls
65 lines (56 loc) · 1.59 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Qodana
on:
workflow_dispatch:
push:
paths-ignore:
- '**.png'
- '**.jpg'
- '.gitattributes'
- '.github/**.json'
- '.gitignore'
- '.gitmodules'
- '**.md'
- 'LICENSE'
- 'NOTICE'
- '.github/workflows/tasks.yml'
- '.github/workflows/publish.yml'
- '.github/workflows/nightly-merge.yml'
env:
BUGLY_APPID: ${{ secrets.BUGLY_APPID }}
jobs:
qodana:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Skip duplicate actions
uses: fkirc/skip-duplicate-actions@v5.3.1
with:
cancel_others: true
- name: Set up java
uses: actions/setup-java@v4.3.0
with:
distribution: 'zulu'
java-version: 17
- name: Gradle cache
uses: gradle/actions/setup-gradle@v4
- run: ./gradlew build
- name: 'Run Qodana'
uses: JetBrains/qodana-action@v2024.1.9
with:
args: >
--env,BUGLY_APPID=${{ secrets.BUGLY_APPID }}
use-caches: false
- name: Deploy to GitHub Pages
if: github.ref_name == 'master'
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ runner.temp }}/qodana/results/report
destination_dir: ./
- name: Deploy to GitHub code scanning
if: github.ref_name == 'master'
uses: github/codeql-action/upload-sarif@v3.26.7
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json