fix: allow patch version in go.mod (#1) #12
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get go mod info | |
id: gomod | |
uses: pawndev/[email protected] | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '^${{ steps.gomod.outputs.go_version }}' | |
- name: Build | |
run: | | |
go mod download | |
go build -v . |