-
-
Notifications
You must be signed in to change notification settings - Fork 95
62 lines (51 loc) · 1.37 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
56
57
58
59
60
61
62
name: Build
on:
push:
paths:
- "**.gradle"
- "**.properties"
- "**.java"
- "**.toml"
- "**.xml"
- ".github/workflows/*.yml"
branches:
- "**"
pull_request:
branches:
- master
jobs:
fullbuild:
runs-on: ubuntu-latest
name: Java 20 build
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
fetch-depth: 0
- name: JDK Setup
uses: actions/setup-java@v3.13.0
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: D-BUS AT-SPI Installation
run: sudo apt-get -y install at-spi2-core
- name: Build
run: ./gradlew build -x test -PskipSpotless
- name: Test
uses: coactions/setup-xvfb@v1.0.1
with:
run: ./gradlew jacocoTestReport -PskipSpotless
- name: Package Creation
run: ./gradlew jpackage
- name: Static Analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: ${{!github.event.pull_request.head.repo.fork}}
run: ./gradlew sonar -PskipSpotless
- name: Code Style Validation
run: ./gradlew spotlessCheck