owncast/.github/workflows/test.yaml
2022-08-04 08:53:12 -07:00

42 lines
792 B
YAML

name: Tests
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install go
uses: actions/setup-go@v3
with:
go-version: "^1"
- name: Run tests
run: go test ./...
test-bsds:
runs-on: macos-latest
strategy:
matrix:
os:
- name: freebsd
version: 12.2
- name: openbsd
version: 6.8
steps:
- uses: actions/checkout@v3
- name: Install go
uses: actions/setup-go@v3
with:
go-version: "^1"
- name: Run tests
run: go test -race ./...