Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Dependency and CI update #66

Merged
merged 5 commits into from
Aug 10, 2023
Merged

Conversation

fmartingr
Copy link
Contributor

@fmartingr fmartingr commented Aug 5, 2023

Go updates

  • Updated to go 1.20
  • Updated all dependencies

Test fixes

  • Updated sample files and URLs
  • Added testify/require in some non-checked scenarios
  • Updated some old references to ioutil only in the tests I modified

CI updates

  • Upgraded all actions to their latest versions
  • Tests are only done in the go version set up in the go.mod file.

@coveralls
Copy link

coveralls commented Aug 5, 2023

Coverage Status

coverage: 86.799%. remained the same when pulling c4e0409 on fmartingr:update-dependencies-and-ci into 5d94be3 on bmaupin:main.

@bmaupin
Copy link
Owner

bmaupin commented Aug 8, 2023

Thanks for your contribution!

(I cleaned up my comments to reduce confusion. See the code review below)

@bmaupin bmaupin mentioned this pull request Aug 8, 2023
@owulveryck
Copy link
Collaborator

I am on vacation with limited access, but from what I see I fully agree with you @bmaupin especially on the maintenance of the CI dependencies (with the commit numbers).
On the other hand, I think this PR is mandatory, as the CI and dependencies needs some updates.

@bmaupin
Copy link
Owner

bmaupin commented Aug 8, 2023

I've been out of the Go world so long, I didn't realize that updating dependencies would force the version of Go in this project to be updated as well. So that explains many of the changes here.

I guess that technically still counts as a breaking change; if it means the library would require Go 1.20, then I guess we'd need to bump the major version of this library to v2. Which shouldn't be too big of a deal, it's just a version number :)

I'll try to address any remaining issues by adding code reviews.

.github/workflows/ci.yml Show resolved Hide resolved
epub_test.go Outdated Show resolved Hide resolved
epub_test.go Outdated Show resolved Hide resolved
epub_test.go Outdated Show resolved Hide resolved
epub_test.go Outdated Show resolved Hide resolved
testdata/sample_640x360.mp4 Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
@fmartingr
Copy link
Contributor Author

As general comment, I think is best if an http server is used during the tests for the URL downloads rather than downloading files from the internet, but I don't think you want me to address a change like that here?

@bmaupin
Copy link
Owner

bmaupin commented Aug 9, 2023

As general comment, I think is best if an http server is used during the tests for the URL downloads rather than downloading files from the internet, but I don't think you want me to address a change like that here?

I agree 100%. Yes, for now I think we can limit the changes to fixing the tests and upgrading dependencies. Once that's done, I think it would be a great idea to use an HTTP server during the tests. That would prevent broken URLs from breaking the tests in the future. Feel free to submit a PR for it if you'd like.

@bmaupin bmaupin mentioned this pull request Aug 9, 2023
3 tasks
This reverts commit 772d6fa.
@fmartingr fmartingr requested a review from bmaupin August 10, 2023 05:41
@fmartingr
Copy link
Contributor Author

I have fully reverted the changes to tests (because now the URLs works for me? Don't know what happened, but tests where failing for me on requests 🤷). I can do separate PRs to move the tests to an http server and to fix all deprecations being used, maybe even add a golangci-lint to actions as well.

@bmaupin
Copy link
Owner

bmaupin commented Aug 10, 2023

I have fully reverted the changes to tests (because now the URLs works for me? Don't know what happened, but tests where failing for me on requests shrug). I can do separate PRs to move the tests to an http server and to fix all deprecations being used, maybe even add a golangci-lint to actions as well.

Thanks so much, that sounds great! Thanks for your contribution!

@bmaupin bmaupin merged commit 88f2b0b into bmaupin:main Aug 10, 2023
4 checks passed
@fmartingr fmartingr deleted the update-dependencies-and-ci branch August 10, 2023 16:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants