-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (45 loc) · 1.24 KB
/
build.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
53
54
55
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
- name: Build with Gradle
run: ./gradlew build --info
env:
CI: true
- name: Scan project using SonarQube
run: ./gradlew sonarqube --info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Verify Plugin on IntelliJ Platforms
id: verify
uses: ChrisCarini/[email protected]
with:
ide-versions: |
ideaIC:2018.2
ideaIC:2019.2
ideaIC:2020.2
ideaIC:LATEST-EAP-SNAPSHOT
- name: Stop Gradle daemon
run: ./gradlew --stop