Skip to content

Commit

Permalink
Test on different machines
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jan 17, 2024
1 parent 290e2cf commit cadd898
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: ""

0 comments on commit cadd898

Please sign in to comment.