From 2a358deeb8983a855bb5bd7d243e04892f36135e Mon Sep 17 00:00:00 2001 From: ThawZinToe Date: Tue, 4 Jun 2024 23:14:20 +0700 Subject: [PATCH] [#498] Added JDK setup in github action --- template-compose/.github/workflows/review_pull_request.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/template-compose/.github/workflows/review_pull_request.yml b/template-compose/.github/workflows/review_pull_request.yml index de1e8023..06f5fd07 100644 --- a/template-compose/.github/workflows/review_pull_request.yml +++ b/template-compose/.github/workflows/review_pull_request.yml @@ -32,6 +32,12 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + - name: Run Detekt run: ./gradlew detekt @@ -45,7 +51,6 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: '2.7' - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Cache gems uses: actions/cache@v2