-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.26 KB
/
ci.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: CI
env:
GRADLE_OPTS: '-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false'
on:
pull_request:
paths-ignore: [ '**/**.md' ]
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
ci-build:
runs-on: macos-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
validate-wrappers: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true
- name: Run build (includes testing and spotless check)
run: ./gradlew build --stacktrace
- name: Upload reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-reports
retention-days: 7
path: |
**/build/reports/*
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
retention-days: 7
path: |
**/build/test-results/*