1
- name : build
1
+ name : integration
2
2
3
- on : [ push ]
3
+ on :
4
+ pull_request : { branches: [ '*' ] }
5
+ push : { branches: [ '*' ] }
4
6
5
7
jobs :
6
8
test :
@@ -14,42 +16,45 @@ jobs:
14
16
15
17
steps :
16
18
- uses : actions/checkout@v2
19
+ with : { fetch-depth: 0 }
17
20
- uses : actions/setup-go@v2
18
- with : { go-version: '${{ matrix.go }}' }
21
+ with : { fetch-depth: 0, go-version: '${{ matrix.go }}' }
19
22
20
23
- uses : actions/cache@v2
21
24
with :
25
+ fetch-depth : 0
22
26
path : |
23
27
~/go/pkg/mod
24
28
~/.cache/go-build
25
29
~/Library/Caches/go-build
26
30
%LocalAppData%\go-build
27
31
key : ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
28
- restore-keys : |
29
- ${{ runner.os }}-go-
32
+ restore-keys : ${{ runner.os }}-go-
30
33
31
- - run : make env deps-fetch test-with-coverage
34
+ - run : make env deps-fetch install test-with-coverage
35
+ - run : ' [ $(ls bin/linux/*/* | wc -l) = 1 ]'
32
36
33
37
build :
34
38
runs-on : ubuntu-18.04
35
39
steps :
36
40
- uses : actions/checkout@v2
41
+ with : { fetch-depth: 0 }
37
42
- uses : actions/setup-go@v2
38
- with : { go-version: '1.17' }
43
+ with : { fetch-depth: 0, go-version: '1.17' }
39
44
40
45
- uses : actions/cache@v2
41
46
with :
47
+ fetch-depth : 0
42
48
path : |
43
49
~/go/pkg/mod
44
50
~/.cache/go-build
45
51
~/Library/Caches/go-build
46
52
%LocalAppData%\go-build
47
53
key : ${{ runner.os }}-go-${{ hashFiles('tools/go.sum') }}
48
- restore-keys : |
49
- ${{ runner.os }}-go-
54
+ restore-keys : ${{ runner.os }}-go-
50
55
51
56
- run : make tools
52
- - run : ' [ $(grep go:gen tools/tools.go | wc -l) = $(ls bin/linux/*/* | wc -l) ]'
57
+ - run : ' [ $(ls bin/linux/*/* | wc -l) = $(grep go:gen tools/tools.go | wc -l) ]'
53
58
54
59
- run : make pre-push
55
60
58
63
needs : [ test, build ]
59
64
steps :
60
65
- uses : rtCamp/action-slack-notify@v2
66
+ with : { fetch-depth: 0 }
61
67
env :
62
68
SLACK_ICON : https://github.com/github.png?size=64
63
69
SLACK_TITLE : ${{ github.repository }}
0 commit comments