-
Notifications
You must be signed in to change notification settings - Fork 57
55 lines (46 loc) · 1.66 KB
/
gradle.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: ODS Jenkins Library Build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: check the value of github.workspace and runner.temp
run: |
echo "github.workspace = ${{ github.workspace }}"
echo "runner.temp = ${{ runner.temp }}"
- name: Set up OpenJDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
- name: Cache
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew -Djava.io.tmpdir=${{ runner.temp }} clean build
env:
NO_NEXUS: true
- name: Check docs are up-to-date
run: |
./.github/workflows/check-docs.sh
env:
NO_NEXUS: true
- name: CodeNarc Report
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: CodeNarc Report
path: build/reports/codenarc/main.html
- name: Test Report
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Test Report
path: build/reports/tests/test/