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 820bd1e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
31 changes: 29 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,31 @@ 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:
fail-fast: false
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: ""
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ runs:
INPUT_VERSION: ${{ inputs.lib-version }}
ADDITIONAL_GRADLE_ARGUMENTS: ${{ inputs.additional-gradle-arguments }}
INPUT_DEBUG: ${{ inputs.debug }}
run: ${{ github.action_path }}/entrypoint.sh
run: ${{ env.GITHUB_ACTION_PATH }}/entrypoint.sh
shell: bash

0 comments on commit 820bd1e

Please sign in to comment.