Skip to content

add GitHub actions test workflow #1

add GitHub actions test workflow

add GitHub actions test workflow #1

Workflow file for this run

name: Unit Tests
on:
workflow_dispatch:
push:
branches:
- "*"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"
jobs:
tests:
name: Unit Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.21
- name: Check out code
uses: actions/checkout@v2
- name: Run Tests
run: go test -v -timeout 30s -covermode atomic ./...