2020-07-15 02:37:41 +03:00
|
|
|
name: Tests
|
|
|
|
|
2021-08-28 01:24:21 +03:00
|
|
|
on: [push, pull_request]
|
2020-07-15 02:37:41 +03:00
|
|
|
jobs:
|
|
|
|
test:
|
2021-08-28 01:24:21 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-01 00:08:17 +03:00
|
|
|
go-version: [1.16.x, 1.17.x]
|
2021-11-01 00:01:22 +03:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2021-08-28 01:24:21 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-07-15 02:37:41 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2020-11-13 00:29:38 +03:00
|
|
|
go-version: "^1"
|
2020-07-15 02:37:41 +03:00
|
|
|
|
|
|
|
- name: Run tests
|
2020-11-13 00:29:38 +03:00
|
|
|
run: go test ./...
|
2021-08-28 01:34:22 +03:00
|
|
|
|
|
|
|
test-bsds:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- name: freebsd
|
|
|
|
version: 12.2
|
|
|
|
- name: openbsd
|
|
|
|
version: 6.8
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: "^1"
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: go test ./...
|
|
|
|
|