Merge pull request #63 from lithammer/dependabot/go_modules/golang.or… #104
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
go-version: ["1.19", "1.20"] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download Go dependencies | |
run: go mod download | |
env: | |
GOPROXY: "https://proxy.golang.org" | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... |