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

chore(ci): add unit tests for 32-bit linux and windows #32

Merged
merged 5 commits into from
May 18, 2022
Merged

Conversation

shubha-rajan
Copy link
Contributor

@shubha-rajan shubha-rajan commented May 16, 2022

Change Description

Run unit tests on 32-bit Linux and Windows with latest Go version. Need to merge #33 first

fixes: #30

@shubha-rajan shubha-rajan requested a review from a team May 16, 2022 22:35
@kurtisvg kurtisvg changed the title chore: unit test 32bit cross-compilation chore(ci): add unit tests for 32-bit linux and windows May 17, 2022
@@ -125,6 +125,9 @@ func (r *refreshOperation) IsValid() bool {
// required information approximately 5 minutes before the previous certificate
// expires (every 55 minutes).
type Instance struct {
// OpenConns is the number of open connections to the instance.
OpenConns uint64
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this commit into a seperate PR with a "fix:" title?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines 70 to 82
linux-32bit:
name: "unit tests (linux/386)"
runs-on: ubuntu-latest
steps:
- name: Setup Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: |
GOARCH=386 go test -v -cover -short ./...
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can use env for this: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idenv

I think that also means we can combine the linux and windows jobs into a single job with a matrix between the two as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

.github/workflows/tests.yaml Outdated Show resolved Hide resolved
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
@shubha-rajan shubha-rajan merged commit 6dd26a3 into main May 18, 2022
@shubha-rajan shubha-rajan deleted the 386-tests branch May 18, 2022 00:24
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.

Add tests for linux.386 tests
2 participants