-
Notifications
You must be signed in to change notification settings - Fork 15
59 lines (52 loc) · 1.38 KB
/
check.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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Check builds and passes UT
on:
push:
branches:
- 'check/**'
- 'experimental/**'
- 'feature/**'
- 'tasks/**'
- 'pr/**'
pull_request:
branches:
- 'experimental/**'
- 'feature/**'
- 'tasks/**'
- 'check/**'
- 'pr/**'
env:
PROTOCVERSION: 3.17.3
jobs:
build-linux:
strategy:
matrix:
go: [ 1.18.4 ]
tags: [ releasetags, debug, tunnel ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install Protoc
run: |
cd /tmp
PROTOCZIP=$(echo "protoc-${{env.PROTOCVERSION}}-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m).zip")
wget https://github.com/google/protobuf/releases/download/v${{env.PROTOCVERSION}}/$PROTOCZIP
sudo unzip -d /opt/protoc $PROTOCZIP
sudo chmod a+r -R /opt/protoc
sudo chmod a+xr /opt/protoc/bin/protoc
sudo ln -s /opt/protoc/bin/protoc /usr/local/bin/
- run: make ${{ matrix.tags }} rawci with-coverage mintest
- uses: actions/upload-artifact@v2
if: failure()
with:
name: linux-artefacts
path: |
generation_results.log
vet_results.log
test_results.log
style_results.log
semgrep_results.log
go.mod
go.sum