Skip to content

Commit 5ad5ab3

Browse files
Update GitHub Actions workflow configuration, test on Go 1.26.x (qax-os#2262)
- Update dependencies modules - Update unit tests
1 parent 52dd99a commit 5ad5ab3

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
test:
66
strategy:
77
matrix:
8-
go-version: [1.24.x, 1.25.x]
8+
go-version: [1.24.x, 1.25.x, 1.26.x]
99
os: [ubuntu-24.04, macos-15-intel, windows-latest]
1010
targetplatform: [x86, x64]
1111

cell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ func (f *File) GetCellHyperLink(sheet, cell string) (bool, string, error) {
988988

989989
// GetHyperLinkCells returns cell references which contain hyperlinks in a
990990
// given worksheet name and link type. The optional parameter 'linkType' use for
991-
// specific link type,the optional values are "External" for website links,
991+
// specific link type, the optional values are "External" for website links,
992992
// "Location" for moving to one of cell in this workbook, "None" for no links.
993993
// If linkType is empty, it will return all hyperlinks in the worksheet.
994994
func (f *File) GetHyperLinkCells(sheet, linkType string) ([]string, error) {

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ require (
88
github.com/tiendc/go-deepcopy v1.7.2
99
github.com/xuri/efp v0.0.1
1010
github.com/xuri/nfp v0.0.2-0.20250530014748-2ddeb826f9a9
11-
golang.org/x/crypto v0.47.0
11+
golang.org/x/crypto v0.48.0
1212
golang.org/x/image v0.25.0
13-
golang.org/x/net v0.49.0
14-
golang.org/x/text v0.33.0
13+
golang.org/x/net v0.50.0
14+
golang.org/x/text v0.34.0
1515
)
1616

1717
require (

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ github.com/xuri/efp v0.0.1 h1:fws5Rv3myXyYni8uwj2qKjVaRP30PdjeYe2Y6FDsCL8=
1414
github.com/xuri/efp v0.0.1/go.mod h1:ybY/Jr0T0GTCnYjKqmdwxyxn2BQf2RcQIIvex5QldPI=
1515
github.com/xuri/nfp v0.0.2-0.20250530014748-2ddeb826f9a9 h1:+C0TIdyyYmzadGaL/HBLbf3WdLgC29pgyhTjAT/0nuE=
1616
github.com/xuri/nfp v0.0.2-0.20250530014748-2ddeb826f9a9/go.mod h1:WwHg+CVyzlv/TX9xqBFXEZAuxOPxn2k1GNHwG41IIUQ=
17-
golang.org/x/crypto v0.47.0 h1:V6e3FRj+n4dbpw86FJ8Fv7XVOql7TEwpHapKoMJ/GO8=
18-
golang.org/x/crypto v0.47.0/go.mod h1:ff3Y9VzzKbwSSEzWqJsJVBnWmRwRSHt/6Op5n9bQc4A=
17+
golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=
18+
golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos=
1919
golang.org/x/image v0.25.0 h1:Y6uW6rH1y5y/LK1J8BPWZtr6yZ7hrsy6hFrXjgsc2fQ=
2020
golang.org/x/image v0.25.0/go.mod h1:tCAmOEGthTtkalusGp1g3xa2gke8J6c2N565dTyl9Rs=
21-
golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o=
22-
golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8=
23-
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
24-
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
21+
golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60=
22+
golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM=
23+
golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=
24+
golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=
2525
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
2626
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2727
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

styles_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,13 @@ func TestNewStyle(t *testing.T) {
565565
assert.NoError(t, f.SaveAs(filepath.Join("test", "TestSetFontCharset.xlsx")))
566566
})
567567

568-
t.Run("recreate_default_style", func(t *testing.T) {
568+
t.Run("for_recreate_default_style", func(t *testing.T) {
569569
f := NewFile()
570-
style2, err := f.GetStyle(0) // Get the default style
570+
style, err := f.GetStyle(0)
571571
assert.NoError(t, err)
572-
styleId, err := f.NewStyle(style2) // Try to recreate the same style. Should return style ID 0
572+
styleID, err := f.NewStyle(style)
573573
assert.NoError(t, err)
574-
assert.Equal(t, 0, styleId)
574+
assert.Equal(t, 0, styleID)
575575
})
576576
}
577577

0 commit comments

Comments
 (0)