From d1b599b7954ec17957da48a84642d1ad32c62eeb Mon Sep 17 00:00:00 2001 From: Jeffrey Cafferata Date: Sun, 28 Jan 2024 15:40:29 +0100 Subject: [PATCH] CICD: GitHub Action check git status (#2817) Co-authored-by: Tom Limoncelli --- .github/workflows/pr_check_git_status.yml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pr_check_git_status.yml diff --git a/.github/workflows/pr_check_git_status.yml b/.github/workflows/pr_check_git_status.yml new file mode 100644 index 000000000..4991fe5cc --- /dev/null +++ b/.github/workflows/pr_check_git_status.yml @@ -0,0 +1,26 @@ +name: "PR: Check git status" +on: + push: + branches: + - 'tlim_testpr' + pull_request: + workflow_dispatch: + +jobs: + check-git-status: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + - uses: actions/setup-go@v5 + with: + go-version: stable + - run: go install golang.org/x/tools/cmd/stringer@latest + - run: go fmt ./... + - run: go mod tidy + - run: go generate ./... + - uses: CatChen/check-git-status-action@v1 + with: + fail-if-not-clean: true