Skip to content

Unit tests

Unit tests #462

Workflow file for this run

name: "Unit tests"
on:
pull_request:
push:
branches:
- master
schedule:
- cron: "0 4 * * *"
jobs:
unit:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
go: ['^1.19.0']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: "Unit Tests"
run: go test -coverprofile=coveragetxt -race ./...
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
if: github.event_name == 'push'
with:
file: ./coveragetxt
flags: unittests