Skip to content

Commit

Permalink
Update Go versions and testing logic in Github actions
Browse files Browse the repository at this point in the history
The .github/workflows/test.yaml file has been updated to include Go 1.21.x in testing. Additionally, the superscript_test.go and subscript_test.go testing logic has been refactored.
  • Loading branch information
bowman2001 committed Feb 1, 2024
1 parent a88cc80 commit c02fa23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.19.x, 1.20.x]
go-version: [1.19.x, 1.20.x, 1.21.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
6 changes: 1 addition & 5 deletions subscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ import (
"testing"

"github.com/yuin/goldmark"
"github.com/yuin/goldmark/renderer/html"
"github.com/yuin/goldmark/testutil"
)

func TestSubscript(t *testing.T) {
markdown := goldmark.New(
goldmark.WithRendererOptions(
html.WithUnsafe(),
),
goldmark.WithExtensions(
Subscript,
Subscript, Superscript,
extension.Strikethrough,
),
)
Expand Down
6 changes: 1 addition & 5 deletions superscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ import (
"testing"

"github.com/yuin/goldmark"
"github.com/yuin/goldmark/renderer/html"
"github.com/yuin/goldmark/testutil"
)

func TestSuperscript(t *testing.T) {
markdown := goldmark.New(
goldmark.WithRendererOptions(
html.WithUnsafe(),
),
goldmark.WithExtensions(
Superscript,
Superscript, Subscript,
),
)
testutil.DoTestCaseFile(markdown, "_test/superscript.txt", t, testutil.ParseCliCaseArg()...)
Expand Down

0 comments on commit c02fa23

Please sign in to comment.