Skip to content

chore: test ci

chore: test ci #6

Workflow file for this run

name: Test and coverage
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.20.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: go get
run: go get ./...
- name: go mod tidy
run: go mod tidy
- name: Run coverage
run: go test -race -coverprofile="coverage.out" -covermode=atomic ./...
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
run: bash <(curl -s https://codecov.io/bash)