Skip to content

Add option to run Go tests automatically #12

Add option to run Go tests automatically

Add option to run Go tests automatically #12

Workflow file for this run

name: CI
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: true
- run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3