Skip to content

Create .golangci.yml #84

Create .golangci.yml

Create .golangci.yml #84

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions: read-all
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go-version: [1.21, 1.22, 1.23]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: go test -race -cover ./...
- name: Lint
uses: golangci/golangci-lint-action@v6
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Run golangci linters
uses: golangci/golangci-lint-action@v6