Skip to content

[googleapis_auth] Add support for non-Google OAuth providers #747

[googleapis_auth] Add support for non-Google OAuth providers

[googleapis_auth] Add support for non-Google OAuth providers #747

Workflow file for this run

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@13aacd865c20de90d75de3b17ebe84f7a17d57d2
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@fedb1266e91cf51be2fdb382869461a434b920a3
with:
sdk: dev
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- 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