Bump docker/setup-buildx-action from 2 to 3 #592
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
run: | | |
sudo apt-get -q update | |
sudo apt-get -q install -y jq zip unzip curl | |
git fetch --tags origin | |
./release/10-get-protoc-binaries.sh | |
- name: Tests | |
run: | | |
./test/suite/test.sh "$PWD" | |
- name: Check Docs | |
run: | | |
./doc/generate-docs.sh "$PWD" | |
# "Only a single line diff in EXMAPLES.md is allowed due to non-constant HTTP Date Header." | |
EXPECTED_DIFF="$(echo -e "1\t1\tEXAMPLES.md")" | |
# We need to use tabs here, as otherwise the test below would fail. | |
if [ "$(git diff --numstat 2>/dev/null)" == "$EXPECTED_DIFF" ]; then | |
echo "Docs are up to date." | |
else | |
echo "The autogenerated docs are not up to date. Generated docs are different from what is commited." | |
echo "Please run " | |
echo " doc/generate-docs.sh \"\$PWD\"" | |
echo "locally, inspect the diff and commit them if they are OK." | |
echo "================ Git Diff (short) ==================" | |
git diff --numstat | |
echo "================ Git Diff (long) ==================" | |
git diff | |
exit 1 | |
fi |