diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 137449b..fba69a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,7 @@ jobs: with: build-root-directory: testproject arguments: dependencies + gradle-home-cache-cleanup: true - id: dependency-diff if: github.event_name == 'pull_request' @@ -84,6 +85,7 @@ jobs: with: build-root-directory: testproject arguments: dependencies --no-configuration-cache + gradle-home-cache-cleanup: true - id: dependency-diff uses: ./ @@ -119,7 +121,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest] + os: [macos-latest, windows-latest, ubuntu-latest] runs-on: ${{ matrix.os }} name: Execute on ${{ matrix.os }} runner steps: @@ -139,6 +141,7 @@ jobs: with: build-root-directory: testproject arguments: dependencies + gradle-home-cache-cleanup: true - id: dependency-diff uses: ./ diff --git a/Readme.md b/Readme.md index 132e01e..12c18a9 100644 --- a/Readme.md +++ b/Readme.md @@ -63,14 +63,13 @@ jobs: All inputs with their default values: ```yml - id: dependency-diff - name: Generate dependency diff uses: usefulness/dependency-tree-diff-action@v1 with: configuration: 'releaseRuntimeClasspath' project: 'app' build-root-directory: . additional-gradle-arguments: '' - lib-version: '1.2.1' + lib-version: 'latest' ``` - **`configuration`** - Selected Gradle configuration, passed to `./gradlew dependencies --configuration xxx`. @@ -81,7 +80,7 @@ Dependency diff for root projects can be configured using `project: ''`. - **`build-root-directory`** - Relative path to folder containing gradle wrapper. Example usage: `build-root-directory: library` - **`additional-gradle-arguments`** - Additional arguments passed to internal Gradle invocation. Example: `"--no-configuration-cache"` or `"--stacktrace"` -- **`lib-version`** - Overrides [dependency-tree-diff](https://github.com/JakeWharton/dependency-tree-diff) dependency version +- **`lib-version`** - Overrides [dependency-tree-diff](https://github.com/JakeWharton/dependency-tree-diff) dependency version. Example: `"1.2.1"`, `"1.1.0"`, `"latest"`