diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a4d5634..ac23f08 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
- uses: actions/checkout@v2
+ uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
# This needs to come after the checkout, which wipes the working directory
- name: Download EPUBCheck
@@ -24,10 +24,9 @@ jobs:
unzip epubcheck-*.zip
- name: Set up Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
- # This is the latest 1.x version of Go
- go-version: 1.x
+ go-version-file: ./go.mod
- name: Build
run: go build -v ./...
@@ -36,35 +35,10 @@ jobs:
run: go test -v -coverprofile=profile.cov ./...
- name: Send coverage
- uses: shogo82148/actions-goveralls@v1
+ uses: shogo82148/actions-goveralls@df920a6a2468668dfcf71a0b43817f89eaa5ea04 # v1.7.0
with:
path-to-profile: profile.cov
-
- # Test with multiple versions of Go
- test-go-versions:
- runs-on: ubuntu-latest
- strategy:
- # Don't cancel remaining jobs when one matrix job fails
- fail-fast: false
- matrix:
- # 1.x is the latest version of Go
- go: ['1.16', '1.17', '1.x']
-
- steps:
- - uses: actions/checkout@v2
-
- - name: Set up Go
- uses: actions/setup-go@v2
- with:
- go-version: ${{ matrix.go }}
-
- - name: Build
- run: go build -v ./...
-
- - name: Test
- run: go test -v ./...
-
# Test Mac and Windows with the latest version of Go
test-mac-windows:
runs-on: ${{ matrix.os }}
@@ -74,12 +48,12 @@ jobs:
os: [macos-latest, windows-latest]
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
- go-version: 1.x
+ go-version-file: ./go.mod
- name: Build
run: go build -v ./...
diff --git a/epub_test.go b/epub_test.go
index dd34f1b..7692aba 100644
--- a/epub_test.go
+++ b/epub_test.go
@@ -68,7 +68,7 @@ const (
testVideoFromURLSource = "https://filesamples.com/samples/video/mp4/sample_640x360.mp4"
testAudioFromFileFilename = "sample_audio.wav"
testAudioFromFileSource = "testdata/sample_audio.wav"
- testAudioFromURLSource = "https://file-examples.com/storage/fe644084cb644d3709528c4/2017/11/file_example_WAV_1MG.wav"
+ testAudioFromURLSource = "https://file-examples.com/storage/fe1dbaea7664d369bb6e226/2017/11/file_example_WAV_1MG.wav"
testLangTemplate = `%s`
testDescTemplate = `%s`
testPpdTemplate = `page-progression-direction="%s"`
diff --git a/go.mod b/go.mod
index 68955d5..0784e70 100644
--- a/go.mod
+++ b/go.mod
@@ -1,9 +1,11 @@
module github.com/bmaupin/go-epub
-go 1.15
+go 1.20
require (
- github.com/gabriel-vasile/mimetype v1.3.1
- github.com/gofrs/uuid v3.1.0+incompatible
- github.com/vincent-petithory/dataurl v0.0.0-20191104211930-d1553a71de50
+ github.com/gabriel-vasile/mimetype v1.4.2
+ github.com/gofrs/uuid v4.4.0+incompatible
+ github.com/vincent-petithory/dataurl v1.0.0
)
+
+require golang.org/x/net v0.13.0 // indirect
diff --git a/go.sum b/go.sum
index 9b2c323..eb7a0c2 100644
--- a/go.sum
+++ b/go.sum
@@ -1,13 +1,8 @@
-github.com/gabriel-vasile/mimetype v1.3.1 h1:qevA6c2MtE1RorlScnixeG0VA1H4xrXyhyX3oWBynNQ=
-github.com/gabriel-vasile/mimetype v1.3.1/go.mod h1:fA8fi6KUiG7MgQQ+mEWotXoEOvmxRtOJlERCzSmRvr8=
-github.com/gofrs/uuid v3.1.0+incompatible h1:q2rtkjaKT4YEr6E1kamy0Ha4RtepWlQBedyHx0uzKwA=
-github.com/gofrs/uuid v3.1.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
-github.com/vincent-petithory/dataurl v0.0.0-20191104211930-d1553a71de50 h1:uxE3GYdXIOfhMv3unJKETJEhw78gvzuQqRX/rVirc2A=
-github.com/vincent-petithory/dataurl v0.0.0-20191104211930-d1553a71de50/go.mod h1:FHafX5vmDzyP+1CQATJn7WFKc9CvnvxyvZy6I1MrG/U=
-golang.org/x/net v0.0.0-20210505024714-0287a6fb4125 h1:Ugb8sMTWuWRC3+sz5WeN/4kejDx9BvIwnPUiJBjJE+8=
-golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU=
+github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA=
+github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA=
+github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
+github.com/vincent-petithory/dataurl v1.0.0 h1:cXw+kPto8NLuJtlMsI152irrVw9fRDX8AbShPRpg2CI=
+github.com/vincent-petithory/dataurl v1.0.0/go.mod h1:FHafX5vmDzyP+1CQATJn7WFKc9CvnvxyvZy6I1MrG/U=
+golang.org/x/net v0.13.0 h1:Nvo8UFsZ8X3BhAC9699Z1j7XQ3rsZnUUm7jfBEk1ueY=
+golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=