owncast/.github/workflows/test.yaml

51 lines
906 B
YAML
Raw Normal View History

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