Skip to content

Commit

Permalink
github/workflows: fix cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed Feb 23, 2021
1 parent af4c5b1 commit d0cce6b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
36 changes: 18 additions & 18 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,39 @@ coverage:
linux-1.13:
<<: *projects
flags:
- "linux-1.13"
- "linux-1.14"
linux-1.14:
<<: *projects
flags:
- "linux-1.14"
- "linux-1.15"
linux-1.15:
<<: *projects
flags:
- "linux-1.15"
- "linux-1.16"
macos-1.13:
<<: *projects
flags:
- "macos-1.13"
- "macos-1.14"
macos-1.14:
<<: *projects
flags:
- "macos-1.14"
- "macos-1.15"
macos-1.15:
<<: *projects
flags:
- "macos-1.15"
- "macos-1.16"
windows-1.13:
<<: *projects
flags:
- "windows-1.13"
- "windows-1.14"
windows-1.14:
<<: *projects
flags:
- "windows-1.14"
- "windows-1.15"
windows-1.15:
<<: *projects
flags:
- "windows-1.15"
- "windows-1.16"
patch:
default: false
linux-1.13:
Expand Down Expand Up @@ -85,21 +85,17 @@ coverage:
branches:
- master
flags:
- "linux-1.13"
- "linux-1.14"
- "linux-1.15"
- "macos-1.13"
- "linux-1.16"
- "macos-1.14"
- "macos-1.15"
- "windows-1.13"
- "macos-1.16"
- "windows-1.14"
- "windows-1.15"
- "windows-1.16"

flags:
linux-1.13:
paths:
- /
carryforward: true
linux-1.14:
paths:
- /
Expand All @@ -108,7 +104,7 @@ flags:
paths:
- /
carryforward: true
macos-1.13:
linux-1.16:
paths:
- /
carryforward: true
Expand All @@ -120,7 +116,7 @@ flags:
paths:
- /
carryforward: true
windows-1.13:
macos-1.16:
paths:
- /
carryforward: true
Expand All @@ -132,6 +128,10 @@ flags:
paths:
- /
carryforward: true
windows-1.16:
paths:
- /
carryforward: true

comment:
behavior: default
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,36 +53,36 @@ jobs:
- name: Cache Go module and build cache
uses: actions/cache@v2
with:
key: ${{ env.OS }}-go-${{ hashFiles('**/go.mod') }}
key: go-${{ env.OS }}-${{ hashFiles('**/go.mod') }}
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
~/Library/Caches/go-build # Build cache (Mac)
'%LocalAppData%\go-build' # Build cache (Windows)
restore-keys: |
${{ env.OS }}-go-
go-${{ env.OS }}-
- name: Cache nvim binary for linux and darwin
id: cache-nvim
uses: actions/cache@v2
if: ${{ env.OS != 'windows' }}
with:
key: ${{ env.OS }}-nvim-${{ hashFiles('~/nvim/bin/nvim') }}
key: nvim-${{ env.OS }}-${{ hashFiles('~/nvim/bin/nvim') }}
path: |
~/nvim
restore-keys: |
${{ env.OS }}-nvim-
nvim-${{ env.OS }}-
- name: Cache nvim binary for Windows
id: cache-nvim-windows
uses: actions/cache@v2
if: ${{ env.OS == 'windows' }}
with:
key: ${{ env.OS }}-nvim-${{ hashFiles('~/nvim/bin/nvim.exe') }}
key: nvim-${{ env.OS }}-${{ hashFiles('~/nvim/bin/nvim.exe') }}
path: |
~/nvim
restore-keys: |
${{ env.OS }}-nvim-
nvim-${{ env.OS }}-
- name: Install nvim binary
uses: rhysd/action-setup-vim@v1
Expand Down

0 comments on commit d0cce6b

Please sign in to comment.