mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 15:23:55 +03:00
352447e3d4
* First pass at basic browser tests for #1926 * Run tests against dev web server not go server * Bundle the web code into the server before running tests * Move cypress UI tests into its own npm project + add tests * Add additional tests + wire up with cypress dashboard * Limit concurrency of workflow jobs * Temporarily comment out some tests that do not pass in mobile. Will fix later.
48 lines
862 B
YAML
48 lines
862 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@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 ./...
|