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