mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
723432fb94
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
50 lines
906 B
YAML
50 lines
906 B
YAML
name: Go Tests
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'web/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'web/**'
|
|
|
|
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@v4
|
|
with:
|
|
go-version: '^1'
|
|
cache: true
|
|
|
|
- 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@v4
|
|
with:
|
|
go-version: '^1'
|
|
cache: true
|
|
|
|
- name: Run tests
|
|
run: go test ./...
|