File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,24 @@ jobs:
18
18
strategy :
19
19
matrix :
20
20
go : ['1.11', '1.12', '1.13', '1.14']
21
+ # Build all variants regardless of failures
22
+ fail-fast : false
21
23
name : Go ${{ matrix.go }}
22
24
23
25
steps :
24
26
- uses : actions/checkout@v2
25
27
with :
26
- # Assuming that there are at most 20 commits in a single pull
27
- # request, we want to check all commits in a pull request have DCO.
28
- fetch-depth : 20
28
+ # By default, the checkout action only fetches the last commit,
29
+ # but we want to run DCO check against all commit messages.
30
+ # Assuming that a pull request may have multiple commits,
31
+ # fetching the single commit doesn't work for us.
32
+ #
33
+ # While DCO check (on Makefile) checks latest 20 commits,
34
+ # the checkout action automatically creates a merge commit
35
+ # for merging "master" into a pull request branch.
36
+ # So we need to fetch 21 commits (including the merge commit)
37
+ # to have 20 actual commits from a pull request.
38
+ fetch-depth : 21
29
39
- uses : actions/setup-go@v1
30
40
with :
31
41
go-version : ${{ matrix.go }}
You can’t perform that action at this time.
0 commit comments