Skip to content

Unit tests

Unit tests #1001

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@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
with:
go-version: ${{ matrix.go }}
- name: "Unit Tests"
run: go test -coverprofile=coveragetxt -race ./...
- name: Upload to codecov.io
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
if: github.event_name == 'push'
with:
file: ./coveragetxt
flags: unittests