mirror of
https://github.com/livekit/livekit.git
synced 2026-03-29 13:39:52 +00:00
working CI test workflow, more reliable transport_test
This commit is contained in:
32
.github/workflows/buildtest.yaml
vendored
32
.github/workflows/buildtest.yaml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build and Test
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -7,7 +7,6 @@ on:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -17,16 +16,37 @@ jobs:
|
||||
path: |
|
||||
~/go/pkg/mod
|
||||
~/go/bin
|
||||
~/bin/protoc
|
||||
~/.cache
|
||||
key: ${{ runner.os }}-amd64-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-amd64-go-
|
||||
|
||||
key: livekit-server
|
||||
- uses: shogo82148/actions-setup-redis@v1.10.3
|
||||
with:
|
||||
redis-version: '6.x'
|
||||
auto-start: true
|
||||
- run: redis-cli ping
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
|
||||
- name: Download Go modules
|
||||
run: go mod download
|
||||
|
||||
- name: Download protoc
|
||||
run: curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
|
||||
|
||||
- name: Install protoc
|
||||
run: sudo unzip protoc-3.15.8-linux-x86_64.zip -d /usr
|
||||
|
||||
- run: sudo chmod 755 /usr/bin/protoc
|
||||
|
||||
- name: Install protoc-gen-twirp
|
||||
run: go install github.com/twitchtv/twirp/protoc-gen-twirp
|
||||
|
||||
- name: Install protoc-gen-go
|
||||
run: go install google.golang.org/protobuf/cmd/protoc-gen-go
|
||||
|
||||
- name: Mage Build
|
||||
uses: magefile/mage-action@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user