Skip to content

Commit

Permalink
Merge pull request #642 from ChristianMurphy/chore/gradle-actions
Browse files Browse the repository at this point in the history
chore(ci): analyze gradle in GitHub actions
  • Loading branch information
ChristianMurphy authored Aug 26, 2024
2 parents ff7507f + 9ec7d74 commit 3015b90
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: CI
permissions:
contents: write
on:
push:
branches:
Expand All @@ -9,24 +11,39 @@ on:

jobs:
test:
name: '${{ matrix.platform }} with Java ${{ matrix.java-version }}'
name: '${{ matrix.platform }} with Java ${{ matrix.java-distribution }} version ${{ matrix.java-version }}'
strategy:
matrix:
platform:
- ubuntu-latest
- windows-latest
- macos-latest
java-distribution:
- adopt-hotspot
- temurin
- zulu
java-version:
- 8
- 11
include:
- platform: windows-latest
java-distribution: adopt-hotspot
java-version: 11
- platform: macos-latest
java-distribution: adopt-hotspot
java-version: 11
runs-on: ${{ matrix.platform }}
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt-hotspot
distribution: ${{ matrix.java-distribution }}
java-version: ${{ matrix.java-version }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Generate and submit dependency graph
if: ${{ github.event_name == 'push' }}
uses: gradle/actions/dependency-submission@v4
- name: Test
run: ./gradlew check -S --no-daemon --no-parallel

0 comments on commit 3015b90

Please sign in to comment.