mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
Build & test against Go 1.13 and latest Go (#346)
This commit is contained in:
parent
8d9eb1e79f
commit
6976dffdfb
2 changed files with 6 additions and 6 deletions
8
.github/workflows/buildmaster.yaml
vendored
8
.github/workflows/buildmaster.yaml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/test.yaml
vendored
4
.github/workflows/test.yaml
vendored
|
@ -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 ./...
|
||||
|
|
Loading…
Reference in a new issue