Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,20 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
- uses: jdx/mise-action@v4
# mise-action caches the toolchain, not Go's module and build caches.
- name: Find Go caches
id: go-cache
run: |
echo "mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
echo "build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v5
with:
go-version: "1.27.x"
check-latest: true
path: |
${{ steps.go-cache.outputs.mod }}
${{ steps.go-cache.outputs.build }}
key: go-${{ github.job }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('mise.toml', 'go.sum') }}
restore-keys: go-${{ github.job }}-${{ runner.os }}-${{ runner.arch }}-
- run: go build ./...
- run: go vet ./...
- run: test -z "$(gofmt -l .)"
Expand All @@ -40,13 +50,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: "1.27.x"
check-latest: true
- uses: jdx/mise-action@v4
- uses: golangci/golangci-lint-action@v9
with:
version: v2.14.0
# Use the golangci-lint mise installed from mise.toml.
install-mode: none

shell-integration:
strategy:
Expand All @@ -56,10 +64,20 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
- uses: jdx/mise-action@v4
# mise-action caches the toolchain, not Go's module and build caches.
- name: Find Go caches
id: go-cache
run: |
echo "mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
echo "build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v5
with:
go-version: "1.27.x"
check-latest: true
path: |
${{ steps.go-cache.outputs.mod }}
${{ steps.go-cache.outputs.build }}
key: go-${{ github.job }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('mise.toml', 'go.sum') }}
restore-keys: go-${{ github.job }}-${{ runner.os }}-${{ runner.arch }}-
- name: Install shells
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ jobs:
echo "::error::$GITHUB_REF_NAME is a lightweight tag; tag with git tag -a and the release notes as its message (see Releasing in the README)"
exit 1
fi
- uses: actions/setup-go@v7
with:
go-version: "1.27.x"
check-latest: true
- uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
- uses: jdx/mise-action@v4
- run: goreleaser release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CI installs these with jdx/mise-action, so this is the one place to bump them.
[tools]
go = "1.27"
golangci-lint = "2.14.0"
goreleaser = "2"
Loading