-
Notifications
You must be signed in to change notification settings - Fork 128
73 lines (72 loc) · 1.85 KB
/
ci.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
name: CI
on:
push:
branches: master
pull_request:
jobs:
yamllint:
name: lint yaml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install yamllint
run: pip install --user yamllint
- name: Run yamllint
run: ~/.local/bin/yamllint -c .yamllint.yml .
checkproto:
name: check proto
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run check-proto
run: make check-proto
# shellcheck:
# name: shellcheck
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: shellcheck
# uses: reviewdog/action-shellcheck@v1
# with:
# github_token: ${{ secrets.github_token }}
# reporter: github-check
checkgomod:
name: check go.mod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.13
- run: go mod tidy -v
- name: Check for changes in go.mod
run: |
git diff --name-only --exit-code go.mod || ( git diff && echo "Run go tidy to update go.mod" && false )
build:
name: build go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.13
- run: |
go build -v ./...
# test:
# name: test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v1
# with:
# go-version: 1.13
# - name: Install gotestsum
# run: go get gotest.tools/gotestsum@v0.4.0
# - name: Run tests
# run: |
# eval $(go env)
# mkdir -p ~/junit/
# ${GOPATH}/bin/gotestsum --junitfile ~/junit/unit-tests.xml -- -short $(go list ./...)