made use of GitHub-styled usage
upgraded checkout - v2 -> v3
This commit is contained in:
parent
cf05989699
commit
27864e77f9
1 changed files with 9 additions and 7 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -13,14 +13,15 @@ jobs:
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: date +%F > todays-date
|
- id: todays-date
|
||||||
|
run: echo date="$(date +%F)" >> $GITHUB_OUTPUT
|
||||||
|
shell: bash
|
||||||
- name: Restore cache for today's nightly.
|
- name: Restore cache for today's nightly.
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: _neovim
|
||||||
_neovim
|
key: ${{ runner.os }}-x64-${{ steps.todays-date.outputs.date }}
|
||||||
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
|
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -35,8 +36,9 @@ jobs:
|
||||||
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "${PWD}/_neovim/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
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
|
make test
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue