owncast/.github/workflows/test.yaml

49 lines
862 B
YAML
Raw Normal View History

name: Go Tests
on:
push:
paths-ignore:
- 'web/**'
pull_request:
paths-ignore:
- 'web/**'
jobs:
test:
2021-08-28 01:24:21 +03:00
strategy:
matrix:
2022-08-04 18:53:12 +03:00
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
2021-08-28 01:24:21 +03:00
runs-on: ${{ matrix.os }}
steps:
2022-04-10 14:54:39 +03:00
- uses: actions/checkout@v3
- name: Install go
uses: actions/setup-go@v3
with:
go-version: '^1'
- name: Run tests
run: go test ./...
test-bsds:
2022-07-28 00:17:35 +03:00
runs-on: macos-latest
strategy:
matrix:
os:
- name: freebsd
version: 12.2
- name: openbsd
version: 6.8
steps:
2022-04-10 14:54:39 +03:00
- uses: actions/checkout@v3
- name: Install go
uses: actions/setup-go@v3
with:
go-version: '^1'
- name: Run tests
run: go test ./...