Skip to content

update ci

update ci #441

Workflow file for this run

name: Go
on:
push:
branches: ['*', '*/*']
tags: ['v*']
pull_request:
branches: ['*']
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
test:
name: test
strategy:
matrix:
go: ["1.19.x", "1.22.x", "1.23.x"]
runs-on: ubuntu-latest
steps:
- name: Setup Go
with:
go-version: ${{ matrix.go }}
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Test
run: make cover
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3