Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add macOS and Windows tests #8

Merged
merged 11 commits into from
May 2, 2023
Merged

test: add macOS and Windows tests #8

merged 11 commits into from
May 2, 2023

Conversation

fortuna
Copy link
Contributor

@fortuna fortuna commented Apr 30, 2023

This is to make sure we stay cross-platform.

Note that the Windows build and test is a lot slower than Linux and Windows. Because of that, I had to change the wait in one of the tests.

Also, I'm using windows-2019, which is at least 2x faster than windows-latest: actions/runner-images#5166

On macOS, I ran into an issue where CloseRead on a connection that was already fully read causes an error, so I needed to update the test there too. It was a huge pain to figure out what was going on.

Enable macOS tests

Add TODO

Try Windows

Fix job name

Use setup-go@v4

Read Go version from go.mod

Add CWD

Fix go-version-file

Use ./go.mod

Use  github.workspace

Reorder

Spaces

Remove cwd

Try CD

Test

Again

Again

Use localhost IP

Add bench

Refactor test

Add bench

Again

Re-enable
@jyyi1
Copy link
Contributor

jyyi1 commented May 2, 2023

This is to make sure we stay cross-platform.

Note that the Windows build and test is a lot slower than Linux and Windows. Because of that, I had to change the wait in one of the tests.

Also, I'm using windows-2019, which is at least 2x faster than windows-latest: actions/runner-images#5166

On macOS, I ran into an issue where CloseRead on a connection that was already fully read causes an error, so I needed to update the test there too. It was a huge pain to figure out what was going on.

You mean Windows build and test is slower than macOS and Linux?

Copy link
Contributor

@jyyi1 jyyi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title should be test: ..., since test is a valid conventional commit type

@fortuna fortuna changed the title chore: add macOS and Windows tests test: add macOS and Windows tests May 2, 2023
Base automatically changed from fortuna-simple to main May 2, 2023 17:53
@fortuna fortuna merged commit b8f111a into main May 2, 2023
4 checks passed
@fortuna fortuna deleted the fortuna-simple2 branch May 2, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants