Skip to content

Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 #21

Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0

Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 #21

Workflow file for this run

name: Run Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.20'
check-latest: true
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v5.0.0
with:
version: v1.55.1
args: --verbose
test:
needs: lint
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
go: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21']
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
env:
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Run Tests
run: go test -v ./...