Skip to content

add codecov.yml

add codecov.yml #44

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
dind:
image: docker:dind-rootless
ports:
- 2375:2375
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
check-latest: true
- name: Install dependencies
run: |
go mod tidy
go mod vendor
- name: Test
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
check-latest: true
- uses: "golangci/golangci-lint-action@v3"