-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (34 loc) · 971 Bytes
/
test.yaml
File metadata and controls
34 lines (34 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run protoc
run: |
wget -c -O /tmp/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip \
&& unzip /tmp/protoc.zip -d /tmp/ \
&& go get -u -v google.golang.org/protobuf/cmd/protoc-gen-go \
&& /tmp/bin/protoc -I ./scheduler --go_out=./scheduler scheduler.proto
- name: Test
env:
GOPRIVATE: github.com/jimen0
run: go test -race -v ./...