Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6eeb450

Browse files
authoredFeb 24, 2021
github/workflow: fix cache key (#100)
* github/workflow: fix on.{push,pull_request}.branch * github/workflows: fix cache keys
1 parent d57ca14 commit 6eeb450

File tree

2 files changed

+33
-36
lines changed

2 files changed

+33
-36
lines changed
 

‎.codecov.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,39 @@ coverage:
2424
linux-1.13:
2525
<<: *projects
2626
flags:
27-
- "linux-1.13"
27+
- "linux-1.14"
2828
linux-1.14:
2929
<<: *projects
3030
flags:
31-
- "linux-1.14"
31+
- "linux-1.15"
3232
linux-1.15:
3333
<<: *projects
3434
flags:
35-
- "linux-1.15"
35+
- "linux-1.16"
3636
macos-1.13:
3737
<<: *projects
3838
flags:
39-
- "macos-1.13"
39+
- "macos-1.14"
4040
macos-1.14:
4141
<<: *projects
4242
flags:
43-
- "macos-1.14"
43+
- "macos-1.15"
4444
macos-1.15:
4545
<<: *projects
4646
flags:
47-
- "macos-1.15"
47+
- "macos-1.16"
4848
windows-1.13:
4949
<<: *projects
5050
flags:
51-
- "windows-1.13"
51+
- "windows-1.14"
5252
windows-1.14:
5353
<<: *projects
5454
flags:
55-
- "windows-1.14"
55+
- "windows-1.15"
5656
windows-1.15:
5757
<<: *projects
5858
flags:
59-
- "windows-1.15"
59+
- "windows-1.16"
6060
patch:
6161
default: false
6262
linux-1.13:
@@ -85,21 +85,17 @@ coverage:
8585
branches:
8686
- master
8787
flags:
88-
- "linux-1.13"
8988
- "linux-1.14"
9089
- "linux-1.15"
91-
- "macos-1.13"
90+
- "linux-1.16"
9291
- "macos-1.14"
9392
- "macos-1.15"
94-
- "windows-1.13"
93+
- "macos-1.16"
9594
- "windows-1.14"
9695
- "windows-1.15"
96+
- "windows-1.16"
9797

9898
flags:
99-
linux-1.13:
100-
paths:
101-
- /
102-
carryforward: true
10399
linux-1.14:
104100
paths:
105101
- /
@@ -108,7 +104,7 @@ flags:
108104
paths:
109105
- /
110106
carryforward: true
111-
macos-1.13:
107+
linux-1.16:
112108
paths:
113109
- /
114110
carryforward: true
@@ -120,7 +116,7 @@ flags:
120116
paths:
121117
- /
122118
carryforward: true
123-
windows-1.13:
119+
macos-1.16:
124120
paths:
125121
- /
126122
carryforward: true
@@ -132,6 +128,10 @@ flags:
132128
paths:
133129
- /
134130
carryforward: true
131+
windows-1.16:
132+
paths:
133+
- /
134+
carryforward: true
135135

136136
comment:
137137
behavior: default

‎.github/workflows/test.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@ name: Test
33
on:
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-
1916
defaults:
2017
run:
2118
shell: bash
@@ -25,9 +22,9 @@ jobs:
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

Comments
 (0)
Please sign in to comment.