Skip to content

Commit 3015b90

Browse files
Merge pull request #642 from ChristianMurphy/chore/gradle-actions
chore(ci): analyze gradle in GitHub actions
2 parents ff7507f + 9ec7d74 commit 3015b90

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CI
2+
permissions:
3+
contents: write
24
on:
35
push:
46
branches:
@@ -9,24 +11,39 @@ on:
911

1012
jobs:
1113
test:
12-
name: '${{ matrix.platform }} with Java ${{ matrix.java-version }}'
14+
name: '${{ matrix.platform }} with Java ${{ matrix.java-distribution }} version ${{ matrix.java-version }}'
1315
strategy:
1416
matrix:
1517
platform:
1618
- ubuntu-latest
17-
- windows-latest
18-
- macos-latest
19+
java-distribution:
20+
- adopt-hotspot
21+
- temurin
22+
- zulu
1923
java-version:
2024
- 8
2125
- 11
26+
include:
27+
- platform: windows-latest
28+
java-distribution: adopt-hotspot
29+
java-version: 11
30+
- platform: macos-latest
31+
java-distribution: adopt-hotspot
32+
java-version: 11
2233
runs-on: ${{ matrix.platform }}
34+
timeout-minutes: 5
2335
steps:
2436
- name: Checkout
2537
uses: actions/checkout@v4
2638
- name: Set up JDK
2739
uses: actions/setup-java@v4
2840
with:
29-
distribution: adopt-hotspot
41+
distribution: ${{ matrix.java-distribution }}
3042
java-version: ${{ matrix.java-version }}
43+
- name: Setup Gradle
44+
uses: gradle/actions/setup-gradle@v4
45+
- name: Generate and submit dependency graph
46+
if: ${{ github.event_name == 'push' }}
47+
uses: gradle/actions/dependency-submission@v4
3148
- name: Test
3249
run: ./gradlew check -S --no-daemon --no-parallel

0 commit comments

Comments
 (0)