Skip to content

build(deps): bump golangci/golangci-lint-action from 3 to 4 (#130) #296

build(deps): bump golangci/golangci-lint-action from 3 to 4 (#130)

build(deps): bump golangci/golangci-lint-action from 3 to 4 (#130) #296

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
env:
GO_VERSION: 1.22.x
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out repository
- uses: actions/setup-go@v5
name: Set up Go
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- uses: golangci/golangci-lint-action@v4
name: Install golangci-lint
with:
version: latest
args: --version
- run: make lint
name: Lint
test:
runs-on: ${{ matrix.os }}
name: Test (${{ matrix.os}})
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build
run: make build
shell: bash
- name: Test
run: make cover
env:
TEST_FLAGS: '-race'
shell: bash
- name: Upload coverage
uses: codecov/codecov-action@v4