Skip to content

chore(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 #91

chore(deps): bump golang.org/x/net from 0.7.0 to 0.17.0

chore(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 #91

Workflow file for this run

name: Go build, test and lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
jobs:
go:
strategy:
matrix:
go: [1.19]
golangcli: [1.50.1]
os: [ubuntu-latest, macos-latest, windows-latest]
name: lint
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true
- name: Validate go generate / mod
if: runner.os != 'Windows'
run: |
go install golang.org/x/tools/cmd/stringer@latest
go generate ./...
go mod tidy
git --no-pager diff && [[ 0 -eq $(git status --porcelain | wc -l) ]]
- name: Go Lint Standard
if: runner.os != 'Windows'
uses: golangci/golangci-lint-action@v3
with:
version: ${{ matrix.golangci }}
args: "--out-${NO_FUTURE}format colored-line-number"
skip-cache: true
- name: Go Lint Windows
if: runner.os == 'Windows'
uses: golangci/golangci-lint-action@v3
env:
outformat: out-format
with:
version: ${{ matrix.golangci }}
args: "--%outformat% colored-line-number"
skip-cache: true
- name: Go Build
run: go build ./...
- name: Go Test
run: go test -race -v ./...