diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e623533..86802dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,8 +80,7 @@ jobs: printf "org.gradle.unsafe.configuration-cache=true" > ~/.gradle/gradle.properties shell: bash - - name: Cache - uses: gradle/gradle-build-action@v2 + - uses: gradle/gradle-build-action@v2 with: build-root-directory: testproject arguments: dependencies --no-configuration-cache @@ -115,3 +114,30 @@ jobs: comment-id: ${{ steps.find_comment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} token: ${{ secrets.GITHUB_TOKEN }} + + test-on-different-os: + strategy: + matrix: + os: [macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + name: Execute on ${{ matrix.os }} runner + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + + - 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.1.0/g' testproject/build.gradle + + - id: dependency-diff + uses: ./ + if: github.event_name == 'pull_request' + with: + configuration: runtimeClasspath + build-root-directory: testproject + project: ""