Browse Source

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

pull/347/head
Christian Muehlhaeuser 5 years ago committed by GitHub
parent
commit
6976dffdfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .github/workflows/buildmaster.yaml
  2. 4
      .github/workflows/test.yaml

8
.github/workflows/buildmaster.yaml

@ -11,7 +11,7 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
go-version: [1.13.x, 1.14.x] go-version: [~1.13, ^1]
platform: [ubuntu-latest, macos-latest] platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
@ -22,7 +22,7 @@ jobs:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build - name: Build
run: go build -o owncast *.go run: go build -o owncast *.go
@ -36,6 +36,6 @@ jobs:
- name: Build Docker image - name: Build Docker image
run: docker build -t owncast . run: docker build -t owncast .
- name: Run Docker image - 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

4
.github/workflows/test.yaml

@ -16,7 +16,7 @@ jobs:
- name: Install go - name: Install go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: '1.14.x' go-version: "^1"
- name: Run tests - name: Run tests
run: go test ./... run: go test ./...

Loading…
Cancel
Save