@ -45,13 +45,41 @@ jobs:
- name : Check spotless
run : ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache
- name : Check Dependency Guard
id : dependencyguard_verify
continue-on-error : true
run : ./gradlew dependencyGuard
- name : Prevent updating Dependency Guard baselines if this is a fork
id : checkfork_dependencyguard
continue-on-error : false
if : steps.dependencyguard_verify.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository
run : |
echo "::error::Dependency Guard failed, please run the following to update baselines:\n" \
" ./gradlew dependencyGuardBaseline" && exit 1
# Runs if previous job failed
- name : Generate new screenshots if verification failed and it's a PR
id : dependencyguard_baseline
if : steps.dependencyguard_verify.outcome == 'failure' && github.event_name == 'pull_request'
run : |
./gradlew dependencyGuardBaseline
- name : Push new Dependency Guard baselines if available
uses : stefanzweifel/git-auto-commit-action@v5
if : steps.dependencyguard_baseline.outcome == 'success'
with:
file_pattern : '**/dependencies/*.txt'
disable_globbing : true
commit_message : "🤖 Updates baselines for Dependency Guard"
- name : Run all local screenshot tests (Roborazzi)
id : screenshotsverify
continue-on-error : true
run : ./gradlew verifyRoborazziDemoDebug
- name : Prevent pushing new screenshots if this is a fork
id : checkfork
id : checkfork _screenshots
continue-on-error : false
if : steps.screenshotsverify.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository
run : |