From 63954d4e1b2b7a22146beaf9604bbb1caa65bb5d Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 14 Jul 2020 16:37:41 -0700 Subject: [PATCH] We only have a single test, but might as well run it anyway --- .github/workflows/buildmaster.yaml | 2 +- .github/workflows/test.yaml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/buildmaster.yaml b/.github/workflows/buildmaster.yaml index 1b86da941..dcdf62c12 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 000000000..0aaadbf77 --- /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