Skip to content

Merge pull request #120 from johnmanjiro13/renovate/github.com-master… #246

Merge pull request #120 from johnmanjiro13/renovate/github.com-master…

Merge pull request #120 from johnmanjiro13/renovate/github.com-master… #246

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: build & test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: build
run: go build .
- name: test
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...
- name: upload coverage to codecov
uses: codecov/codecov-action@v4