-
-
Notifications
You must be signed in to change notification settings - Fork 480
64 lines (61 loc) · 1.99 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
56
57
58
59
60
61
62
63
64
name: Pact-JVM Build
on:
push:
branches: [ master, v4.1.x, v4.4.x, v4.5.x, v4.6.x ]
pull_request:
branches: [ master, v4.1.x, v4.4.x, v4.5.x, v4.6.x ]
jobs:
latest_jdk:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
module: [ core, 'consumer -x :consumer:junit:clojureTest', provider, pact-specification-test ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 18
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- run: ./gradlew -v
- name: Build with Gradle
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} check
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: "**/test-results/**/*.xml"
supported_jdks:
runs-on: ubuntu-latest
strategy:
matrix:
module: [ core, consumer, provider, pact-specification-test ]
jdk: [ 17, 18 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- run: ./gradlew -v
- name: Build with Gradle
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} check
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: "**/test-results/**/*.xml"