chore: remove refs to deprecated io/ioutil (#122) #110
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: | |
build: | |
name: Build + Test Stable | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: auto | |
steps: | |
- name: Build | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.19.x' | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic | |
- name: Coverage | |
uses: codecov/codecov-action@v2 | |
build-legacy: | |
name: Build + Test Previous Stable | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: auto | |
steps: | |
- name: Build | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.18.x' | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test ./... |