End to end automated tests run on Github workflows (#384)

* WIP for automated integration test

* See if it runs under a workflow

* Support running test locally as well as a workflow

* Use already downloaded repo to build. Do not re-clone

* Add comments

* Update to support new default config file

* Split out different test suites

* Add test for chat

* Always run test with config-default and ignore local config file

* Remove the build workflow because the end to end test does that now
This commit is contained in:
Gabe Kangas
2020-11-24 00:28:54 -08:00
committed by GitHub
parent cb1f183ca1
commit 5dff6f32fc
10 changed files with 5395 additions and 41 deletions

View File

@@ -0,0 +1,16 @@
name: Automated end to end tests
on:
push:
# branches:
# - master
pull_request:
branches: master
jobs:
Jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup and run
run: cd test/automated && ./run.sh

View File

@@ -1,41 +0,0 @@
name: Build Owncast
on:
push:
branches:
- master
pull_request:
branches: master
jobs:
build:
strategy:
matrix:
go-version: [~1.13, ^1]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2
- name: Build
run: go build -o owncast *.go
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy default config file
run: cp config-default.yaml config.yaml
- name: Build Docker image
run: docker build -t owncast .
- name: Run Docker image
run: docker run -d -p 8080:8080 -p 1935:1935 owncast