Skip to content

Commit

Permalink
ci: Test against Go 1.21 and 1.22 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Feb 11, 2024
1 parent 969cbb0 commit f12e317
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-go@v5
name: Set up Go
with:
go-version: 1.20.x
go-version: 1.22.x
cache: false
- uses: golangci/golangci-lint-action@v3
name: Install golangci-lint
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.20.x", "1.21.x"]
go: ["1.21.x", "1.22.x"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module go.abhg.dev/goldmark/anchor

go 1.19
go 1.20

require (
github.com/stretchr/testify v1.8.1
Expand Down
2 changes: 1 addition & 1 deletion transform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestTransform_noHeadingIDs(t *testing.T) {
src := []byte("# Foo\n\n# Bar\n\n# Baz\n")
got := p.Parse(text.NewReader(src))

err := ast.Walk(got, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
err := ast.Walk(got, func(n ast.Node, _ bool) (ast.WalkStatus, error) {
an, ok := n.(*Node)
assert.False(t, ok, "unexpected Node: %#v", an)
return ast.WalkContinue, nil
Expand Down

0 comments on commit f12e317

Please sign in to comment.