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:
16
.github/workflows/automated-end-to-end.yaml
vendored
Normal file
16
.github/workflows/automated-end-to-end.yaml
vendored
Normal 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
|
||||
41
.github/workflows/buildmaster.yaml
vendored
41
.github/workflows/buildmaster.yaml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user