-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (49 loc) · 1.29 KB
/
ci.yml
File metadata and controls
51 lines (49 loc) · 1.29 KB
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
name: CI
on: [push,pull_request]
jobs:
lint:
name: Golangci-lint
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v2
with:
go-version: 1.15
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run golangci-lint
uses: Mushus/golangci-linter@v1
- name: Go report card
uses: creekorful/goreportcard-action@v1.0
# - name: Run Golangci-lint
# uses: golangci/golangci-lint-action@v2
# with:
# version: v1.29
test:
name: Unit Testing
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v2
with:
go-version: 1.15
id: go
# - name: Get failpoint
# run: |
# git clone https://github.com/pingcap/failpoint.git
# ls -al
# pwd
# cd failpoint/failpoint-ctl
# go build
# sudo cp failpoint-ctl $GOPATH/bin
- name: Checkout
uses: actions/checkout@v2
- name: Enable failpoint
run: make test
# - name: Enable failpoint
# run : failpoint-ctl enable
# - name: Go Test
# run: go test -v ./...
# - name: Disable failpoint
# run: failpoint-ctl disable