forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
118 lines (99 loc) · 3.23 KB
/
coverage.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: Coverage
on:
workflow_dispatch:
inputs:
push:
branches: [ '**' ]
jobs:
coverage-test:
strategy:
fail-fast: false
matrix:
gradle-task: ['check', 'testSerial']
runs-on: ubuntu-24.04
concurrency:
group: ${{ matrix.gradle-task }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup JDK 11
id: setup-java-11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Setup JDK 17
id: setup-java-17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set JAVA_HOME
run: echo "JAVA_HOME=${{ steps.setup-java-11.outputs.path }}" >> $GITHUB_ENV
- name: Setup gradle properties
run: |
.github/scripts/gradle-properties.sh >> gradle.properties
cat gradle.properties
- name: Run gradle ${{ matrix.gradle-task }}
run: |
./gradlew --scan --continue --rerun-tasks -Pcoverage.enabled=true ${{ matrix.gradle-task }}
./gradlew --scan --continue -Pcoverage.enabled=true coverage
./gradlew --scan --continue -Pcoverage.enabled=true coverage-merge
- name: Upload Coverage Results
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.gradle-task }}-results
path: |
coverage/build/reports/jacoco/**
coverage/build/reports/coverage/**
**/build/jacoco/*.exec
combined-coverage-report:
needs: coverage-test
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Download Coverage Results
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Display structure of downloaded files
run: ls -R .
- name: Setup JDK 17
id: setup-java-17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup JDK 11
id: setup-java-11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set JAVA_HOME
run: echo "JAVA_HOME=${{ steps.setup-java-11.outputs.path }}" >> $GITHUB_ENV
- name: Setup gradle properties
run: |
.github/scripts/gradle-properties.sh >> gradle.properties
cat gradle.properties
- name: Run gradle ${{ matrix.gradle-task }}
run: |
./gradlew --scan --continue -Pcoverage.enabled=true coverage
./gradlew --scan --continue -Pcoverage.enabled=true coverage-merge
- name: Upload Combined Coverage Results
uses: actions/upload-artifact@v4
with:
name: combined-coverage-results
path: |
coverage/build/reports/jacoco/**
coverage/build/reports/coverage/**