From caf25d12d09bff23e5218a8d32eda8bce470f887 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 18 Dec 2024 21:08:11 -0800 Subject: [PATCH] [ci] Add expectations check for PR branch --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 821915ea44462..12efb8cb2f9ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,5 +64,19 @@ jobs: echo "Test expectations are out-of-date on the target branch." echo "You can run `./tools/maint/rebaseline_tests.py --new-branch`" echo "and use it to create a seperate PR." + echo "-- This failure is only a warning and can be ignored" exit 1 fi + - name: Check test expectations on PR branch + run: | + git checkout ${{ github.base_name }} + ./bootstrap + if ! ./tools/maint/rebaseline_tests.py --check-only; then + echo "Test expectations are out-of-date on the PR branch." + echo "You can run `./tools/maint/rebaseline_tests.py` to" + echo "create an commit updating the expectations." + echo "Be sure to have `emsdk install tot` first." + echo "-- This failure is only a warning and can be ignored" + exit 1 + fi +