Skip to content

Update golang.org/x/mod #57

Update golang.org/x/mod

Update golang.org/x/mod #57

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "~1.17"
- run: go test -race ./...
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, macos-12, windows-2019]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "~1.17"
- run: go build
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
version: v1.47
goreleaser:
name: Release
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "~1.17"
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}