Skip to content

Commit

Permalink
Merge pull request #1189 from square/renovate/pin-dependencies
Browse files Browse the repository at this point in the history
Pin dependencies
  • Loading branch information
RBusarow authored Feb 25, 2024
2 parents d2ecb1b + 2e71976 commit c73473f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions .github/actions/gradle-task/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs :
steps :

- name : Set up JDK
uses : actions/setup-java@v3
uses : actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with :
distribution : ${{inputs.distribution}}
java-version : ${{inputs.java-version}}
Expand All @@ -36,7 +36,7 @@ runs :
uses : ./.github/actions/gradle-args

- name : Gradle build action
uses : gradle/gradle-build-action@v2
uses : gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2
with :
cache-read-only : false
gradle-home-cache-cleanup : true
Expand All @@ -59,7 +59,7 @@ runs :
- name : restore cache for ${{inputs.write-cache-key}}
id : restore-write-cache
if : inputs.write-cache-key != 'null'
uses : actions/cache/restore@v4
uses : actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with :
path : |
~/.gradle/caches/build-cache-1
Expand All @@ -77,7 +77,7 @@ runs :
# Skipped if the restore-cache-key wasn't set, or if the write-cache-key restore had an exact match.
- name : restore cache for ${{inputs.restore-cache-key}}
if : inputs.restore-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
uses : actions/cache/restore@v4
uses : actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with :
path : |
~/.gradle/caches/build-cache-1
Expand All @@ -91,11 +91,11 @@ runs :
${{runner.os}}-${{inputs.restore-cache-key}}-${{steps.hashes.outputs.lib_versions}}
${{runner.os}}-${{inputs.restore-cache-key}}
- uses : gradle/wrapper-validation-action@v1
- uses : gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1

# Run the actual task. Note that this still uses gradle-build-action for more fine-grained caching.
- name : Run ${{inputs.task}}
uses : gradle/gradle-build-action@v2
uses : gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2
with :
# These arguments need to be on a single line. If they're defined with wrapping (using `|`),
# something along the way to the actual CLI invocation gets confused and the jvmargs list
Expand All @@ -110,7 +110,7 @@ runs :
# Windows runners are welcome to *read* the cross-OS cache, but the directories get weird if
# they try to write to it.
- name : save the '${{inputs.write-cache-key}}' cache
uses : actions/cache/save@v4
uses : actions/cache/save@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
id : save-write-cache-key
if : inputs.write-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
with :
Expand All @@ -123,7 +123,7 @@ runs :

- name : Upload heap dump
if : failure()
uses : actions/upload-artifact@v3
uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with :
name : heap-dump
path : ${{github.workspace}}/**/*{.hprof,.log}
10 changes: 5 additions & 5 deletions .github/actions/gradle-tasks-with-emulator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ runs :

# Get the AVD if it's already cached.
- name : AVD cache
uses : actions/cache/restore@v4
uses : actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
id : restore-avd-cache
with :
path : |
Expand All @@ -64,7 +64,7 @@ runs :
# If the AVD cache didn't exist, create an AVD
- name : create AVD and generate snapshot for caching
if : steps.restore-avd-cache.outputs.cache-hit != 'true'
uses : reactivecircus/android-emulator-runner@v2
uses : reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2
with :
api-level : ${{ inputs.api-level }}
arch : x86_64
Expand All @@ -80,7 +80,7 @@ runs :
- name : cache new AVD before tests
if : steps.restore-avd-cache.outputs.cache-hit != 'true'
id : save-avd-cache
uses : actions/cache/save@v4
uses : actions/cache/save@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with :
path : |
~/.android/avd/*
Expand All @@ -90,7 +90,7 @@ runs :
# Run the actual emulator tests.
# At this point every task should be up-to-date and the AVD should be ready to go.
- name : run tests
uses : reactivecircus/android-emulator-runner@v2
uses : reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2
with :
api-level : ${{ inputs.api-level }}
arch : x86_64
Expand All @@ -102,7 +102,7 @@ runs :

- name : Upload results
if : ${{ always() }}
uses : actions/upload-artifact@v3
uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with :
name : instrumentation-test-results
path : ./**/build/reports/androidTests/connected/**
12 changes: 6 additions & 6 deletions .github/workflows/kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs :

# Report as GitHub Pull Request Check.
- name : Publish Test Report
uses : mikepenz/action-junit-report@v3
uses : mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3
if : always() # always run even if the previous step fails
with :
report_paths : '**/build/test-results/test/TEST-*.xml'
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs :

# Report as GitHub Pull Request Check.
- name : Publish Test Report
uses : mikepenz/action-junit-report@v3
uses : mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3
if : always() # always run even if the previous step fails
with :
report_paths : '**/build/test-results/test/TEST-*.xml'
Expand All @@ -244,7 +244,7 @@ jobs :

# Report as GitHub Pull Request Check.
- name : Publish Test Report
uses : mikepenz/action-junit-report@v3
uses : mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3
if : always() # always run even if the previous step fails
with :
report_paths : '**/build/test-results/test/TEST-*.xml'
Expand All @@ -266,7 +266,7 @@ jobs :

# Report as GitHub Pull Request Check.
- name : Publish Test Report
uses : mikepenz/action-junit-report@v3
uses : mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3
if : always() # always run even if the previous step fails
with :
report_paths : '**/build/test-results/test/TEST-*.xml'
Expand All @@ -288,7 +288,7 @@ jobs :

# Report as GitHub Pull Request Check.
- name : Publish Test Report
uses : mikepenz/action-junit-report@v3
uses : mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3
if : always() # always run even if the previous step fails
with :
report_paths : '**/build/test-results/test/TEST-*.xml'
Expand All @@ -312,7 +312,7 @@ jobs :

# Report as GitHub Pull Request Check.
- name : Publish Test Report
uses : mikepenz/action-junit-report@v3
uses : mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3
if : always() # always run even if the previous step fails
with :
report_paths : '**/build/test-results/test/TEST-*.xml'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1

- name: Ensure this isn't a -SNAPSHOT version
uses: ./.github/actions/gradle-task
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1

- name: Check for -SNAPSHOT version
uses: ./.github/actions/gradle-task
Expand Down

0 comments on commit c73473f

Please sign in to comment.