chore: bring caching back
This commit is contained in:
parent
7da0a7e492
commit
4d28e79d54
1 changed files with 14 additions and 3 deletions
17
.github/workflows/tests.yml
vendored
17
.github/workflows/tests.yml
vendored
|
|
@ -27,9 +27,6 @@ jobs:
|
||||||
version: 3.x
|
version: 3.x
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Go mod init
|
|
||||||
run: go mod init github.com/olexsmir/gopher.nvim
|
|
||||||
|
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
|
|
@ -41,6 +38,20 @@ jobs:
|
||||||
neovim: true
|
neovim: true
|
||||||
version: ${{ matrix.versions }}
|
version: ${{ matrix.versions }}
|
||||||
|
|
||||||
|
- name: Get Date
|
||||||
|
id: get-date
|
||||||
|
shell: bash
|
||||||
|
run: echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Cache .tests
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{ github.workspace }}/.tests
|
||||||
|
~/go/pkg/mod
|
||||||
|
~/go/bin
|
||||||
|
key: ${{ runner.os }}-tests-${{ steps.get-date.outputs.date }}
|
||||||
|
|
||||||
- name: Install Go bins
|
- name: Install Go bins
|
||||||
run: |
|
run: |
|
||||||
nvim --version
|
nvim --version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue