-
-
Notifications
You must be signed in to change notification settings - Fork 11
66 lines (63 loc) · 1.98 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
65
66
name: Pact Plugin Driver (Gradle)
on:
- push
- pull_request
jobs:
latest_jdk:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build plugin driver
run: ./gradlew -s --no-daemon -i publishToMavenLocal
working-directory: drivers/jvm
- name: Install plugin cli
run: scripts/install-plugin-cli.sh
shell: bash
- name: Install Protobuf plugin
run: ~/bin/pact-plugin-cli -y install protobuf
shell: bash
- name: Run plugin driver tests
run: ./gradlew -s --no-daemon -i check
working-directory: drivers/jvm
- name: Publish driver Pact file
run: GIT_SHA=$GITHUB_SHA ./gradlew --no-daemon pactPublish -PpactBrokerToken=${{ secrets.PACTFLOW_TOKEN }}
working-directory: drivers/jvm
if: runner.os == 'Linux'
supported_jdks:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [ 11, 12, 13, 14, 15, 16 ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build plugin driver
run: ./gradlew -s --no-daemon -i publishToMavenLocal
working-directory: drivers/jvm
- name: Install plugin cli
run: scripts/install-plugin-cli.sh
shell: bash
- name: Install Protobuf plugin
run: ~/bin/pact-plugin-cli -y install protobuf
shell: bash
- name: Run plugin driver tests
run: ./gradlew -s --no-daemon -i check
working-directory: drivers/jvm