Skip to content

add codev

add codev #7

Workflow file for this run

name: Test and Coverage
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup golangci-lint
uses: golangci/golangci-lint-action
with:
version: v1.52.2
args: --verbose --timeout=5m
- name: Get dependencies
run: go mod download
- name: Run tests with coverage
run: go test ./... -coverprofile=coverage.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
fail_ci_if_error: true