diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index 1676b208..619f55d6 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -26,6 +26,17 @@ jobs: id: go - name: Check out code uses: actions/checkout@v3 + - name: Check uncommitted file changes + run: | + make generate manifests + clean=$(git status --porcelain) + if [[ -z "$clean" ]]; then + echo "Empty git status --porcelain: $clean" + else + echo "Uncommitted file changes detected: $clean" + git diff + exit 1 + fi - name: Run make test run: | make test