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

This commit is contained in:
Christian Muehlhaeuser 2020-11-12 22:29:38 +01:00 committed by GitHub
parent 8d9eb1e79f
commit 6976dffdfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -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
run: docker run -d -p 8080:8080 -p 1935:1935 owncast

View file

@ -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 ./...
run: go test ./...