Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

We only have a single test, but might as well run it anyway

Gabe Kangascc481871435e
diff --git a/.github/workflows/buildmaster.yaml b/.github/workflows/buildmaster.yaml
index 1b86da941f..dcdf62c127 100644
--- a/.github/workflows/buildmaster.yaml
+++ b/.github/workflows/buildmaster.yaml
@@ -3,7 +3,7 @@ name: Build Owncast
on:
push:
branches:
- - github-actions
+ - master
pull_request:
branches: master
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
new file mode 100644
index 0000000000..0aaadbf77b
--- /dev/null
+++ b/.github/workflows/test.yaml
@@ -0,0 +1,22 @@
+name: Tests
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches: master
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install go
+ uses: actions/setup-go@v2
+ with:
+ go-version: '1.14.x'
+
+ - name: Run tests
+ run: go test ./...
\ No newline at end of file