build(deps): bump actions/checkout from 4.1.4 to 4.1.6 (#628) #825
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Examples | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
schedule: | |
- cron: "0 0 * * 0" | |
defaults: | |
run: | |
shell: bash | |
env: | |
PUB_ENVIRONMENT: bot.github | |
jobs: | |
verify_examples: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache Pub hosted dependencies | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
with: | |
path: "~/.pub-cache/hosted" | |
key: "os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:${{ matrix.example_directory }}" | |
restore-keys: | | |
os:ubuntu-latest;pub-cache-hosted;dart:dev | |
os:ubuntu-latest;pub-cache-hosted | |
os:ubuntu-latest | |
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30 | |
with: | |
sdk: dev | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- run: | | |
pushd discoveryapis_generator | |
dart pub upgrade | |
popd | |
- run: tool/verify_examples_setup.sh | |
- name: verify output | |
run: | | |
export DIFF_OUTPUT="$(git diff)" | |
if [[ $DIFF_OUTPUT ]]; then | |
echo "::error::Build needs to be re-run!" | |
echo "::group::git diff" | |
echo "$DIFF_OUTPUT" | |
echo "::endgroup::" | |
exit 1 | |
else | |
echo "Build output is all good!" | |
fi |