File tree Expand file tree Collapse file tree 5 files changed +131
-0
lines changed
Expand file tree Collapse file tree 5 files changed +131
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build project
2+ on : [ push, pull_request ]
3+ jobs :
4+ build :
5+ name : Build
6+ runs-on : ubuntu-latest
7+ strategy :
8+ fail-fast : false
9+ # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
10+ matrix :
11+ version :
12+ - " 1.20"
13+ - " 1.21"
14+ - " 1.22"
15+ steps :
16+ - name : Check out source code
17+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
21+ with :
22+ go-version : ${{ matrix.version }}
23+
24+ - name : Test
25+ run : make test
Original file line number Diff line number Diff line change 1+ name : Ensure generated files are up-to-date
2+ on : [ push, pull_request ]
3+ jobs :
4+ build :
5+ name : Build
6+ runs-on : ubuntu-latest
7+ strategy :
8+ fail-fast : false
9+ # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
10+ matrix :
11+ version :
12+ - " 1.20"
13+ - " 1.21"
14+ - " 1.22"
15+ steps :
16+ - name : Check out source code
17+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
21+ with :
22+ go-version : ${{ matrix.version }}
23+
24+ - name : Run `make generate`
25+ run : make generate
26+
27+ - name : Check for no untracked files
28+ run : git status && git diff-index --quiet HEAD --
Original file line number Diff line number Diff line change 1+ name : Lint project
2+ on : [push, pull_request]
3+ jobs :
4+ build :
5+ name : Build
6+ runs-on : ubuntu-latest
7+ strategy :
8+ fail-fast : false
9+ # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
10+ matrix :
11+ version :
12+ - " 1.20"
13+ - " 1.21"
14+ - " 1.22"
15+ steps :
16+ - name : Check out source code
17+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
21+ with :
22+ go-version : ${{ matrix.version }}
23+
24+ - name : Run `make lint-ci`
25+ run : make lint-ci
Original file line number Diff line number Diff line change 1+ name : Release Drafter
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch : {}
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ update_release_draft :
14+ permissions :
15+ contents : write
16+ pull-requests : write
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6
20+ with :
21+ name : next
22+ tag : next
23+ version : next
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Ensure `go mod tidy` has been run
2+ on : [ push, pull_request ]
3+ jobs :
4+ build :
5+ name : Build
6+ runs-on : ubuntu-latest
7+ strategy :
8+ fail-fast : false
9+ # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
10+ matrix :
11+ version :
12+ - " 1.20"
13+ - " 1.21"
14+ - " 1.22"
15+ steps :
16+ - name : Check out source code
17+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
21+ with :
22+ go-version : ${{ matrix.version }}
23+
24+ - name : Install `tidied`
25+ run : go install gitlab.com/jamietanna/tidied@latest
26+
27+ - name : Check for no untracked files
28+ run : tidied -verbose
You can’t perform that action at this time.
0 commit comments