-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
internal/alloydb/instance.go
Outdated
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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 ./... |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Change Description
Run unit tests on 32-bit Linux and Windows with latest Go version. Need to merge #33 first
fixes: #30