From 27864e77f99790d7327e09686a1b95cbdc3add64 Mon Sep 17 00:00:00 2001 From: Phred Date: Fri, 3 Feb 2023 14:26:13 -0600 Subject: [PATCH] made use of GitHub-styled usage upgraded checkout - v2 -> v3 --- .github/workflows/ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d63aec..a73ec28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,14 +13,15 @@ jobs: - os: ubuntu-22.04 url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz steps: - - uses: actions/checkout@v2 - - run: date +%F > todays-date + - uses: actions/checkout@v3 + - id: todays-date + run: echo date="$(date +%F)" >> $GITHUB_OUTPUT + shell: bash - name: Restore cache for today's nightly. uses: actions/cache@v2 with: - path: | - _neovim - key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }} + path: _neovim + key: ${{ runner.os }}-x64-${{ steps.todays-date.outputs.date }} - name: Prepare run: | @@ -35,8 +36,9 @@ jobs: curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim" } + echo "${PWD}/_neovim/bin" >> $GITHUB_PATH + - name: Run tests run: | - export PATH="${PWD}/_neovim/bin:${PATH}" - nvim --headless -u tests/minimal.vim -c "q" + nvim --headless -u tests/minimal.vim -c "q" make test