generated from Kotlin/compiler-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.46 KB
/
build.yml
File metadata and controls
59 lines (48 loc) · 1.46 KB
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
name: Build and Test
on:
pull_request: {}
push:
branches:
- master
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
- name: Build shadowroutines dependency
run: |
git clone https://github.com/hax/shadowroutines.git /tmp/shadowroutines || true
if [ -d "/tmp/shadowroutines" ]; then
cd /tmp/shadowroutines
./gradlew publishToMavenLocal
fi
- name: Build and test all modules
run: ./gradlew check --continue --stacktrace
- uses: mikepenz/action-junit-report@v5
if: success() || failure()
with:
report_paths: '**/build/test-results/**/TEST-*.xml'
check_name: Test Report
detailed_summary: true
include_passed: true
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/build/test-results/**/TEST-*.xml'
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: build-reports
path: '**/build/reports/'