@@ -3,19 +3,16 @@ name: Test
33on :
44 push :
55 branches :
6- - ' ** '
6+ - master
77 pull_request :
88 branches :
9- - " * "
9+ - master
1010 release :
1111 types :
1212 - published
1313 - created
1414 - edited
1515
16- env :
17- GO111MODULE : " on"
18-
1916defaults :
2017 run :
2118 shell : bash
2522 strategy :
2623 matrix :
2724 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
3128 go-version :
3229 - 1.14.x
3330 - 1.15.x
@@ -56,36 +53,36 @@ jobs:
5653 - name : Cache Go module and build cache
5754 uses : actions/cache@v2
5855 with :
59- key : ${{ env.OS }}-go- ${{ hashFiles('**/go.sum ') }}
56+ key : go- ${{ env.OS }}-${{ hashFiles('**/go.mod ') }}
6057 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)
6562 restore-keys : |
66- ${{ env.OS }}-go -
63+ go- ${{ env.OS }}-
6764
6865 - name : Cache nvim binary for linux and darwin
6966 id : cache-nvim
7067 uses : actions/cache@v2
7168 if : ${{ env.OS != 'windows' }}
7269 with :
73- key : ${{ env.OS }}-nvim -${{ hashFiles('~/nvim/bin/nvim') }}
70+ key : nvim- ${{ env.OS }}-${{ hashFiles('~/nvim/bin/nvim') }}
7471 path : |
7572 ~/nvim
7673 restore-keys : |
77- ${{ env.OS }}-nvim -
74+ nvim- ${{ env.OS }}-
7875
7976 - name : Cache nvim binary for Windows
8077 id : cache-nvim-windows
8178 uses : actions/cache@v2
8279 if : ${{ env.OS == 'windows' }}
8380 with :
84- key : ${{ env.OS }}-nvim -${{ hashFiles('~/nvim/bin/nvim.exe') }}
81+ key : nvim- ${{ env.OS }}-${{ hashFiles('~/nvim/bin/nvim.exe') }}
8582 path : |
8683 ~/nvim
8784 restore-keys : |
88- ${{ env.OS }}-nvim -
85+ nvim- ${{ env.OS }}-
8986
9087 - name : Install nvim binary
9188 uses : rhysd/action-setup-vim@v1
0 commit comments