Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Aug 4, 2024
1 parent 8bd54b7 commit a7b544f
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ jobs:
- name: Downgrade dependency version to see the diff
run: sed -i -E 's/androidx.paging:paging-common-ktx:[[:digit:]]+.[[:digit:]]+.[[:digit:]]+/androidx.paging:paging-common-ktx:3.2.0/g' testproject/build.gradle

- uses: gradle/actions/setup-gradle@v3
with:
build-root-directory: testproject
arguments: dependencies
gradle-home-cache-cleanup: true
- uses: gradle/actions/setup-gradle@v4

- run: ./gradlew dependencies
working-directory: testproject

- id: dependency-diff
if: github.event_name == 'pull_request'
uses: ./
Expand Down Expand Up @@ -106,11 +105,10 @@ jobs:
printf "org.gradle.unsafe.configuration-cache=true" > ~/.gradle/gradle.properties
shell: bash
- uses: gradle/actions/setup-gradle@v3
with:
build-root-directory: testproject
arguments: dependencies --no-configuration-cache
gradle-home-cache-cleanup: true
- uses: gradle/actions/setup-gradle@v4

- run: ./gradlew dependencies --no-configuration-cache
working-directory: testproject

- id: dependency-diff
uses: ./
Expand Down Expand Up @@ -169,11 +167,10 @@ jobs:
- name: Downgrade dependency version to see the diff
run: sed -i -E 's/androidx.paging:paging-common-ktx:[[:digit:]]+.[[:digit:]]+.[[:digit:]]+/androidx.paging:paging-common-ktx:3.2.0/g' testproject/build.gradle

- uses: gradle/actions/setup-gradle@v3
with:
build-root-directory: testproject
arguments: dependencies
gradle-home-cache-cleanup: true
- uses: gradle/actions/setup-gradle@v4

- run: ./gradlew dependencies
working-directory: testproject

- id: dependency-diff
uses: ./
Expand Down

0 comments on commit a7b544f

Please sign in to comment.