-
Notifications
You must be signed in to change notification settings - Fork 513
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
How to run tests with latest golang version #455
Comments
I believe you're confusing two caches: the tool cache vs the build/package cache, which the argument is for README link. It sounds like what you want are the |
ok got it thanks, so being everything sourced from What if I want to test with versions that are not yet stable? For instance, once we have the first rc for go1.23, use it to make sure my codebase will not have issues |
Hello @spencerschrock, Thank you for creating the issue and we will look into it :) |
Hello @spencerschrock, Thank you once again for creating this issue The actions/setup-go action is designed to download and set up a Go environment of any version specified in the go-version input of the action. The action uses the official Go downloads, which include both stable and unstable versions. |
@fredmaggiowski This is what I use: steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
check-latest: true
- run: go run hello.go |
Hello @spencerschrock, Please confirm that the above clarification is helpful to proceed to close the issue. |
I'm not the issue author, I'm assuming you meant @fredmaggiowski |
I guess you are right lol
Yes @aparnajyothi-y sorry for the delay, I had a few busy weeks; i'm verifying it later today and come back at you asap :) |
@gaby It seems to work, thanks! https://github.com/rond-authz/rond/actions/runs/7986038478/job/21805633813?pr=323#step:3:11 |
Hi @aparnajyothi-y. It seems that the manifest doesn't include any non-stable versions. Neither betas nor release candidates. Is that still meant to be a supported use case? See petermattis/goid#50 where I tried unsuccessfully to add go1.23rc2 to the matrix. |
Hello, how can I build with go 1.23rc2? |
Figured it out: just specify |
Description:
Hi, I can't find a way to make my action run against the latest golang version available.
I want to run tests against stable golang releases but also verify that newer golang version do not provide harm to my codebase, for this reason I've setup my action to run on a version matrix and then have a "special job" that I want to run tests on the very latest golang release.
This is my setup:
What I'd expect from this is that used golang version would be something > go1.22, instead I see golang 1.20 is being used.
Even adding
cache: false
makes my action run with golang 1.20I understand this might not be a bug but just me not understanding the doc, but how am I supposed to reach my goal?
Action version:
actions/setup-go@v5
Platform:
Runner type:
Tools version:
Repro steps:
Action current configuration on main branch:
https://github.com/rond-authz/rond/blob/07099709a5968c4617c9342716b64d9e077b38f7/.github/workflows/test.yml#L53-L55
PR where I'm trying to fix the behavior:
https://github.com/rond-authz/rond/pull/320/files
Action result showing golang 1.20 is being used:
https://github.com/rond-authz/rond/actions/runs/7816281593/job/21321451154?pr=320#step:3:9
Expected behavior:
My test-latest job should run with the latest golang release avilable
Actual behavior:
not the latest is being used, regardless of the cache (apparently)
The text was updated successfully, but these errors were encountered: