-
Notifications
You must be signed in to change notification settings - Fork 97
43 lines (41 loc) · 917 Bytes
/
java.yaml
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
name: Java
on:
workflow_dispatch:
push:
branches:
- master
- staging
tags:
- "*"
pull_request:
paths:
- "java/**"
- .github/workflows/java.yaml
jobs:
tests-java-1_8:
name: Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.1.1
- name: Run tests
run: make test-java
sonarqube:
name: SonarQube
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.1.1
- name: Run tests
run: make test-java
- name: Run sonarqube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: (cd java && gradle sonarqube)