Skip to content

Commit

Permalink
upgrading github action to JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
harikrishnan83 committed Jan 18, 2024
1 parent a7d2e93 commit 245224a
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +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:
Expand All @@ -13,20 +10,22 @@ on:

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
java: [ 17 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: ${{ matrix.java }}

runs-on: ubuntu-latest
- name: Grant execute permission for gradlew on BFF repo
run: chmod +x gradlew

steps:
- uses: actions/checkout@v2
with:
path: main
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: main
- name: Build with Gradle
run: ./gradlew build
working-directory: main
- name: Build BFF project with Gradle
run: ./gradlew build

0 comments on commit 245224a

Please sign in to comment.