-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (56 loc) · 1.61 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
56
57
58
59
60
61
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/gradle-cache
- name: Set up java
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
- name: Set up js stuff
run: npm install protobufjs@7.2.6 long@5.2.3
- name: Build and test
run: ./gradlew clean check publishToIntegrationRepository --stacktrace --no-daemon
- uses: actions/upload-artifact@v4
with:
name: integration-repository
path: build/repos/integration
integration:
needs: build
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
kotlin: [ 1.8.22, 1.9.24 ]
jdk: [ 11, 17, 21 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/gradle-cache
- name: Set up java
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: ${{ matrix.jdk }}
- uses: actions/download-artifact@v4
with:
name: integration-repository
path: build/repos/integration
- uses: browser-actions/setup-firefox@v1
id: firefox-install
- name: Build and test
env:
FIREFOX_BIN: ${{steps.firefox-install.outputs.firefox-path}}
run: ./gradlew "-Dkotlin-integration.version=${{ matrix.kotlin }}" clean build --stacktrace --no-daemon
working-directory: gradle-plugin-integration-test