Skip to content

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

Build & test against Go 1.13 and latest Go (#346)

Christian Muehlhaeuserc44642d23604
diff --git a/.github/workflows/buildmaster.yaml b/.github/workflows/buildmaster.yaml
index 6ea1c662aa..3cfa0bfb3b 100644
--- a/.github/workflows/buildmaster.yaml
+++ b/.github/workflows/buildmaster.yaml
@@ -11,7 +11,7 @@ jobs:
build:
strategy:
matrix:
- go-version: [1.13.x, 1.14.x]
+ go-version: [~1.13, ^1]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
@@ -22,7 +22,7 @@ jobs:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2
-
+
- name: Build
run: go build -o owncast *.go
@@ -36,6 +36,6 @@ jobs:
- name: Build Docker image
run: docker build -t owncast .
-
+
- name: Run Docker image
- run: docker run -d -p 8080:8080 -p 1935:1935 owncast
\ No newline at end of file
+ run: docker run -d -p 8080:8080 -p 1935:1935 owncast
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 0aaadbf77b..f4cb0e8bf8 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -16,7 +16,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v2
with:
- go-version: '1.14.x'
+ go-version: "^1"
- name: Run tests
- run: go test ./...
\ No newline at end of file
+ run: go test ./...