mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Build & test against Go 1.13 and latest Go (#346)
This commit is contained in:
parent
8d9eb1e79f
commit
6976dffdfb
8
.github/workflows/buildmaster.yaml
vendored
8
.github/workflows/buildmaster.yaml
vendored
@ -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
vendored
4
.github/workflows/test.yaml
vendored
@ -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…
x
Reference in New Issue
Block a user