From 3fbc5ba7ca567e99bc95334f19f1701605343ad3 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 24 Jan 2023 16:14:14 -0800 Subject: [PATCH] ci: add tests/int/get-images.sh check This is to check that tests/integration/get-images.sh is in sync with tests/integration/bootstrap-get-images.sh. Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5a31d5090..eb15b5bf8 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -181,3 +181,29 @@ jobs: with: name: release-${{ github.run_id }} path: release/* + + + get-images: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: install bashbrew + env: + BASEURL: https://github.com/docker-library/bashbrew/releases/download + VERSION: v0.1.7 + SHA256: 6b71a6fccfb2025d48a2b23324836b5513c29abfd2d16a57b7a2f89bd02fe53a + run: | + mkdir ~/bin + curl -sSfL --retry 5 -o ~/bin/bashbrew \ + $BASEURL/$VERSION/bashbrew-amd64 + sha256sum --strict --check - <<<"$SHA256 *$HOME/bin/bashbrew" + chmod a+x ~/bin/bashbrew + # Add ~/bin to $PATH. + echo ~/bin >> $GITHUB_PATH + - name: check that get-images.sh is up to date + run: | + cd tests/integration + ./bootstrap-get-images.sh > get-images.sh + git diff --exit-code