Last active
May 23, 2022 09:17
-
-
Save abtris/43517fdf3706973a97d1b16f7291a8e4 to your computer and use it in GitHub Desktop.
Easy use go.mod for Go version in Github Actions introduces in https://github.com/actions/setup-go/releases/tag/v3.1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go tests | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: "go.mod" | |
- name: Test | |
run: go test -v ./... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use https://github.com/sethvargo/ratchet for improving this more with pin versions!