forked from StackExchange/dnscontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CICD: Ensure that the changes from
go generate
are included in the …
…original pull requests.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "PR: Check git status" | ||
on: | ||
push: | ||
branches: | ||
- 'tlim_testpr' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
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 ./... | ||
- run: echo "Demo time!" >> README.md | ||
- uses: CatChen/check-git-status-action@v1 | ||
with: | ||
fail-if-not-clean: true | ||
request-changes-if-not-clean: true | ||
request-changes-comment: | | ||
Please make sure you've run the following commands from the root directory. | ||
```shell | ||
go vet ./... | ||
go fmt ./... | ||
go generate ./... | ||
go mod tidy | ||
``` |