diff --git a/.github/workflows/check-clean-branch.sh b/.github/workflows/check-clean-branch.sh new file mode 100755 index 0000000000..1eec74803a --- /dev/null +++ b/.github/workflows/check-clean-branch.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Exits if any uncommitted changes are found. + +set -o errexit +set -o nounset +set -o pipefail + +git update-index --really-refresh >> /dev/null +git diff-index --quiet HEAD diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7bf047ead..cca434cd75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,3 +123,16 @@ jobs: with: name: tmpnet-data path: ~/.tmpnet/networks/1000 + mock_gen: + name: MockGen Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: ${{ env.min_go_version }} + check-latest: true + - shell: bash + run: scripts/mock.gen.sh + - shell: bash + run: .github/workflows/check-clean-branch.sh \ No newline at end of file