Skip to content

build(lint): enabled more linters (#3) #16

build(lint): enabled more linters (#3)

build(lint): enabled more linters (#3) #16

Workflow file for this run

name: Continuous Integration
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
permissions:
contents: read
jobs:
linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache-dependency-path: |
go.sum
test/go.sum
- name: Lint .
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
- name: Lint other modules
run: go list -m -f '{{.Dir}}/...' | golangci-lint run
unit-tests:
name: Run unit tests
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.23']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Test
run: go list -m -f '{{.Dir}}/...' | xargs go test -race -coverprofile=cover.out -coverpkg=./...
- name: Collect coverage
run: go tool cover -html=cover.out -o cover.html
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}