File tree 3 files changed +101
-28
lines changed
3 files changed +101
-28
lines changed Original file line number Diff line number Diff line change
1
+ name : Integration Test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - release-5.0
8
+ - release-4.0
9
+ - release-3.0
10
+ pull_request :
11
+ branches :
12
+ - master
13
+ - release-5.0
14
+ - release-4.0
15
+ - release-3.0
16
+
17
+ jobs :
18
+ test :
19
+ # TODO: skip for now as resource limitation
20
+ if : false
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - name : checkout
24
+ uses : actions/checkout@v2
25
+ with :
26
+ path : parser
27
+ - name : setup go
28
+ uses : actions/setup-go@v2
29
+ with :
30
+ go-version : 1.16
31
+ - name : test
32
+ run : |
33
+ git clone https://github.com/pingcap/tidb.git
34
+ cd tidb
35
+ rm go.sum
36
+ GO111MODULE=on go mod edit -replace github.com/pingcap/parser=$GITHUB_WORKSPACE/parser
37
+ go mod tidy
38
+ make gotest
Original file line number Diff line number Diff line change
1
+ name : Unit Test
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ - release-5.0
7
+ - release-4.0
8
+ - release-3.0
9
+ pull_request :
10
+ branches :
11
+ - master
12
+ - release-5.0
13
+ - release-4.0
14
+ - release-3.0
15
+
16
+ jobs :
17
+ generated :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - name : checkout
21
+ uses : actions/checkout@v2
22
+ - name : setup go
23
+ uses : actions/setup-go@v2
24
+ with :
25
+ go-version : 1.16
26
+ - name : validation
27
+ run : |
28
+ mv parser.go parser.go.committed
29
+ make parser
30
+ diff -u parser.go.committed parser.go
31
+
32
+ format :
33
+ runs-on : ubuntu-latest
34
+ steps :
35
+ - name : checkout
36
+ uses : actions/checkout@v2
37
+ - name : setup go
38
+ uses : actions/setup-go@v2
39
+ with :
40
+ go-version : 1.16
41
+ - name : format
42
+ run : make fmt
43
+
44
+ test :
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - name : checkout
48
+ uses : actions/checkout@v2
49
+ with :
50
+ fetch-depth : 0
51
+ - name : setup go
52
+ uses : actions/setup-go@v2
53
+ with :
54
+ go-version : 1.16
55
+ - name : test
56
+ run : make test
57
+ - name : codecov
58
+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change 7
7
working_directory : /go/src/github.com/pingcap/parser
8
8
steps :
9
9
- checkout
10
- - run :
11
- name : " Verify parser.go is up-to-date"
12
- command : |
13
- mv parser.go parser.go.committed
14
- make parser
15
- diff -u parser.go.committed parser.go
16
- - run :
17
- name : " Check code format"
18
- command : make fmt
19
- - run :
20
- name : " Build & Test"
21
- command : make test
22
- - run :
23
- name : " Upload coverage"
24
- command : bash <(curl -s https://codecov.io/bash)
10
+ - run : echo skip
25
11
build-integration :
26
12
docker :
27
- - image : golang:1.16
13
+ - image : golang:1.16
28
14
working_directory : /go/src/github.com/pingcap/parser
29
15
steps :
30
- - checkout
31
- - run :
32
- name : " Integration Test"
33
- command : |
34
- cd /go/src/github.com/pingcap/
35
- git clone [email protected] :pingcap/tidb.git
36
- cd tidb
37
- rm go.sum
38
- GO111MODULE=on go mod edit -replace github.com/pingcap/parser=github.com/${CIRCLE_PR_USERNAME:-$CIRCLE_PROJECT_USERNAME}/${CIRCLE_PR_REPONAME:-$CIRCLE_PROJECT_REPONAME}@$CIRCLE_SHA1
39
- go mod tidy
40
- # use only 1 thread to minimize memory usage (we've only got 2 CPU + 4 GB on Circle CI).
41
- make gotest P=1
16
+ - checkout
17
+ - run : echo skip
18
+
42
19
workflows :
43
20
version : 2
44
21
build_and_test :
You can’t perform that action at this time.
0 commit comments