Skip to content

fix: lint errors - add error handling #3

fix: lint errors - add error handling

fix: lint errors - add error handling #3

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Download dependencies
run: go mod download
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race -coverprofile=coverage.out ./...
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage.out
flags: unittests