Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GH actions #4

Merged
merged 2 commits into from
Feb 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'

- uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
id: gradle-build
uses: gradle/gradle-build-action@v2
with:
arguments: --no-daemon :build-logic:build build --stacktrace
run: ./gradlew --no-daemon :build-logic:build build --stacktrace

- name: Store reports
if: always() && (steps.gradle-build.outcome == 'success' || steps.gradle-build.outcome == 'failure')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: reports
path: |
Expand All @@ -47,9 +47,9 @@ jobs:
matrix:
java: [ 8, 17, 21 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: |
Expand All @@ -61,15 +61,15 @@ jobs:
echo "org.gradle.java.installations.auto-download=false" | tee -a gradle.properties
echo "org.gradle.java.installations.fromEnv=JAVA_HOME_${{ matrix.java }}_X64" | tee -a gradle.properties

- uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
id: gradle-build
uses: gradle/gradle-build-action@v2
with:
arguments: --no-daemon test "-Ptest.java-toolchain=${{ matrix.java }}"
run: ./gradlew --no-daemon test "-Ptest.java-toolchain=${{ matrix.java }}"

- name: Store reports
if: always() && (steps.gradle-build.outcome == 'success' || steps.gradle-build.outcome == 'failure')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jdk-${{ matrix.java }}-tests
path: |
Expand Down