-
Notifications
You must be signed in to change notification settings - Fork 75
46 lines (43 loc) · 1.03 KB
/
build_linux.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
name: build-linux
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
GO111MODULE: off
jobs:
test:
name: build-linux
strategy:
fail-fast: false
matrix:
go: [1.13.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os}}
steps:
- name: install golang
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: checkout code
uses: actions/checkout@v2
- name: go env
run: |
printf "$(go version)\n"
printf "\n\ngo environment:\n\n"
go get -u github.com/lesismal/arpc
ulimit -n 30000
go env
echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
- name: go test
run: go test -timeout 60s -coverprofile="./coverage"
- name: update code coverage report
uses: codecov/[email protected]
with:
file: ./coverage
flags: unittests
verbose: true
name: codecov-arpc