mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-16 12:28:06 +08:00
CICD: GitHub Action check git status (#2817)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
c9e9e21b30
commit
d1b599b795
1 changed files with 26 additions and 0 deletions
26
.github/workflows/pr_check_git_status.yml
vendored
Normal file
26
.github/workflows/pr_check_git_status.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue