Skip to content

add codev

add codev #3

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@v2
with:
go-version: 1.20
- name: Check out code
uses: actions/checkout@v2
- 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