File tree Expand file tree Collapse file tree 1 file changed +22
-15
lines changed Expand file tree Collapse file tree 1 file changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,19 @@ name: Test
2
2
3
3
on :
4
4
push :
5
- branches : " *"
6
- tags :
7
- - " v*"
5
+ branches :
6
+ - ' **'
8
7
pull_request :
9
- branches : " *"
8
+ branches :
9
+ - " *"
10
+ release :
11
+ types :
12
+ - published
13
+ - created
14
+ - edited
15
+
16
+ env :
17
+ GO111MODULE : " on"
10
18
11
19
defaults :
12
20
run :
@@ -17,17 +25,16 @@ jobs:
17
25
strategy :
18
26
matrix :
19
27
os :
20
- # https://github.com/actions/virtual-environments/blob/ubuntu20/20201210.0/images/linux/Ubuntu2004-README.md
21
- - ubuntu-20.04
22
- # https://github.com/actions/virtual-environments/blob/macOS-10.15/20201212.1/images/macos/macos-10.15-Readme.md
23
- - macos-10.15
24
- # https://github.com/actions/virtual-environments/blob/win19/20201210.0/images/win/Windows2019-Readme.md
25
- - windows-2019
28
+ - ubuntu-20.04 # https://github.com/actions/virtual-environments/blob/ubuntu20/20201210.0/images/linux/Ubuntu2004-README.md
29
+ - macos-10.15 # https://github.com/actions/virtual-environments/blob/macOS-10.15/20201212.1/images/macos/macos-10.15-Readme.md
30
+ - windows-2019 # https://github.com/actions/virtual-environments/blob/win19/20201210.0/images/win/Windows2019-Readme.md
26
31
go-version :
27
32
- 1.13.x
28
33
- 1.14.x
29
34
- 1.15.x
30
35
- 1.16.0-beta1
36
+ fail-fast : false
37
+
31
38
runs-on : ${{ matrix.os }}
32
39
33
40
steps :
60
67
${{ env.OS }}-go-
61
68
62
69
- name : Cache nvim binary for linux and darwin
63
- uses : actions/cache@v2
64
70
id : cache-nvim
65
- if : env.OS != 'windows'
71
+ uses : actions/cache@v2
72
+ if : ${{ env.OS != 'windows' }}
66
73
with :
67
74
key : ${{ env.OS }}-nvim-${{ hashFiles('~/nvim/bin/nvim') }}
68
75
path : |
71
78
${{ env.OS }}-nvim-
72
79
73
80
- name : Cache nvim binary for Windows
74
- uses : actions/cache@v2
75
81
id : cache-nvim-windows
76
- if : env.OS == 'windows'
82
+ uses : actions/cache@v2
83
+ if : ${{ env.OS == 'windows' }}
77
84
with :
78
85
key : ${{ env.OS }}-nvim-${{ hashFiles('~/nvim/bin/nvim.exe') }}
79
86
path : |
89
96
version : nightly
90
97
91
98
- name : gofmt
92
- if : env.OS != 'windows'
99
+ if : ${{ env.OS != 'windows' }}
93
100
run : |
94
101
diff -u <(echo -n) <(gofmt -s -d .)
95
102
You can’t perform that action at this time.
0 commit comments