@@ -3,19 +3,16 @@ name: Test
3
3
on :
4
4
push :
5
5
branches :
6
- - ' ** '
6
+ - master
7
7
pull_request :
8
8
branches :
9
- - " * "
9
+ - master
10
10
release :
11
11
types :
12
12
- published
13
13
- created
14
14
- edited
15
15
16
- env :
17
- GO111MODULE : " on"
18
-
19
16
defaults :
20
17
run :
21
18
shell : bash
25
22
strategy :
26
23
matrix :
27
24
os :
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
25
+ - ubuntu-20.04 # https://github.com/actions/virtual-environments/blob/main /images/linux/Ubuntu2004-README.md
26
+ - macos-10.15 # https://github.com/actions/virtual-environments/blob/main /images/macos/macos-10.15-Readme.md
27
+ - windows-2019 # https://github.com/actions/virtual-environments/blob/main /images/win/Windows2019-Readme.md
31
28
go-version :
32
29
- 1.14.x
33
30
- 1.15.x
@@ -56,36 +53,36 @@ jobs:
56
53
- name : Cache Go module and build cache
57
54
uses : actions/cache@v2
58
55
with :
59
- key : ${{ env.OS }}-go- ${{ hashFiles('**/go.sum ') }}
56
+ key : go- ${{ env.OS }}-${{ hashFiles('**/go.mod ') }}
60
57
path : |
61
- ~/go/pkg/mod # Module download cache
62
- ~/.cache/go-build # Build cache (Linux)
63
- ~/Library/Caches/go-build # Build cache (Mac)
64
- '%LocalAppData%\go-build' # Build cache (Windows)
58
+ ~/go/pkg/mod # Module download cache
59
+ ~/.cache/go-build # Build cache (Linux)
60
+ ~/Library/Caches/go-build # Build cache (Mac)
61
+ '%LocalAppData%\go-build' # Build cache (Windows)
65
62
restore-keys : |
66
- ${{ env.OS }}-go -
63
+ go- ${{ env.OS }}-
67
64
68
65
- name : Cache nvim binary for linux and darwin
69
66
id : cache-nvim
70
67
uses : actions/cache@v2
71
68
if : ${{ env.OS != 'windows' }}
72
69
with :
73
- key : ${{ env.OS }}-nvim -${{ hashFiles('~/nvim/bin/nvim') }}
70
+ key : nvim- ${{ env.OS }}-${{ hashFiles('~/nvim/bin/nvim') }}
74
71
path : |
75
72
~/nvim
76
73
restore-keys : |
77
- ${{ env.OS }}-nvim -
74
+ nvim- ${{ env.OS }}-
78
75
79
76
- name : Cache nvim binary for Windows
80
77
id : cache-nvim-windows
81
78
uses : actions/cache@v2
82
79
if : ${{ env.OS == 'windows' }}
83
80
with :
84
- key : ${{ env.OS }}-nvim -${{ hashFiles('~/nvim/bin/nvim.exe') }}
81
+ key : nvim- ${{ env.OS }}-${{ hashFiles('~/nvim/bin/nvim.exe') }}
85
82
path : |
86
83
~/nvim
87
84
restore-keys : |
88
- ${{ env.OS }}-nvim -
85
+ nvim- ${{ env.OS }}-
89
86
90
87
- name : Install nvim binary
91
88
uses : rhysd/action-setup-vim@v1
0 commit comments