Skip to content

Commit

Permalink
Update java setup action for PRs to v4 (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
milosmns authored Jul 4, 2024
2 parents 294476b + 0c498a6 commit 9821532
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: "Validate Gradle wrapper"
uses: gradle/wrapper-validation-action@v1
uses: gradle/actions/wrapper-validation@v3
- name: "Assemble Debug"
run: ./gradlew :android:assembleDebug --no-daemon
- name: "Upload Debug APK to GitHub"
Expand All @@ -39,13 +39,13 @@ jobs:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: "Validate Gradle wrapper"
uses: gradle/wrapper-validation-action@v1
uses: gradle/actions/wrapper-validation@v3
- name: "Lint"
run: ./gradlew ktlintFormat --no-daemon

Expand All @@ -55,13 +55,13 @@ jobs:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: "Validate Gradle wrapper"
uses: gradle/wrapper-validation-action@v1
uses: gradle/actions/wrapper-validation@v3
- name: "Lint"
run: ./gradlew lint --no-daemon
detekt:
Expand All @@ -70,13 +70,13 @@ jobs:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: "Validate Gradle wrapper"
uses: gradle/wrapper-validation-action@v1
uses: gradle/actions/wrapper-validation@v3
- name: "Detekt"
run: ./gradlew detekt
test:
Expand All @@ -85,13 +85,13 @@ jobs:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: "Validate Gradle wrapper"
uses: gradle/wrapper-validation-action@v1
uses: gradle/actions/wrapper-validation@v3
- name: "Test"
run: ./gradlew linuxTest

0 comments on commit 9821532

Please sign in to comment.