Skip to content

Commit 51862f5

Browse files
committed
Revert "sq"
This was a commit that was meant to be pushed to a fork. This reverts commit ad10de1.
1 parent 3c00db0 commit 51862f5

File tree

5 files changed

+131
-0
lines changed

5 files changed

+131
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

.github/workflows/generate.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 --

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 }}

.github/workflows/tidy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)