2021-11-07 14:04:41 +01:00
|
|
|
name: Unit Tests
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "*"
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit_tests:
|
|
|
|
name: Unit Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
goversion:
|
2023-06-07 20:30:38 +02:00
|
|
|
- "1.20"
|
2022-10-16 01:13:50 +02:00
|
|
|
- "1.19"
|
|
|
|
- "1.18"
|
2021-11-07 14:04:41 +01:00
|
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.goversion }}
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Get dependencies
|
|
|
|
run: go get ./...
|
|
|
|
- name: Run Unit Tests
|
2022-10-16 01:13:50 +02:00
|
|
|
run: go test -modfile=go_test.mod -v -cover -race ./...
|