Skip to content

Commit

Permalink
gradle.yml updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
kreinhard committed Dec 2, 2024
1 parent 1d28496 commit 1b36b1e
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
Expand All @@ -19,13 +15,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
distribution: 'temurin'

- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle
- name: Grant execute permission for Gradle wrapper
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build --info --stacktrace
env:
SPRING_PROFILES_ACTIVE: ci
MY_CUSTOM_ENV_VAR: "value"

- name: Run tests
run: ./gradlew test --info --stacktrace

0 comments on commit 1b36b1e

Please sign in to comment.