From 4d28e79d54e8427aaaac7b11de3b8452af0338d0 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Thu, 27 Feb 2025 23:48:08 +0200 Subject: [PATCH] chore: bring caching back --- .github/workflows/tests.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ea949d..198074f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,9 +27,6 @@ jobs: version: 3.x repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Go mod init - run: go mod init github.com/olexsmir/gopher.nvim - - name: Install Go uses: actions/setup-go@v5 with: @@ -41,6 +38,20 @@ jobs: neovim: true 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 run: | nvim --version