@@ -3,57 +3,49 @@ name: default
33on : [push, pull_request]
44
55jobs :
6- x64-ubuntu :
7- name : X64-ubuntu
8- runs-on : ubuntu-20.04
6+ run_tests :
7+ name : unit tests
8+ runs-on : ${{ matrix.os }}
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ include :
13+ - os : ubuntu-22.04
14+ rev : nightly/nvim-linux64.tar.gz
15+ - os : ubuntu-22.04
16+ rev : v0.7.2/nvim-linux64.tar.gz
17+ - os : ubuntu-22.04
18+ rev : v0.8.2/nvim-linux64.tar.gz
919 steps :
10- - uses : actions/checkout@v2
20+ - uses : actions/checkout@v3
1121 - run : date +%F > todays-date
1222 - name : Restore cache for today's nightly.
13- uses : actions/cache@v2
23+ uses : actions/cache@v3
1424 with :
1525 path : _neovim
16- key : ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
17-
18- - name : Run tests
19- run : |
20- curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh
21- source github-actions-setup.sh nightly-x64
22- make test
23-
24- appimage-ubuntu :
25- name : Appimage-ubuntu
26- runs-on : ubuntu-20.04
27- steps :
28- - uses : actions/checkout@v2
29- - run : date +%F > todays-date
30- - name : Restore cache for today's nightly.
31- uses : actions/cache@v2
32- with :
33- path : build
34- key : ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
35-
26+ key : ${{ runner.os }}-${{ matrix.rev }}-${{ hashFiles('todays-date') }}
3627 - name : Prepare
3728 run : |
38- test -d build || {
39- mkdir -p build
40- wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
41- chmod +x nvim.appimage
42- mv nvim.appimage ./build/nvim
29+ test -d _neovim || {
30+ mkdir -p _neovim
31+ curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
4332 }
4433
4534 - name : Run tests
4635 run : |
47- export PATH="${PWD}/build/:${PATH}"
48- make test
36+ export PATH="${PWD}/_neovim/bin:${PATH}"
37+ export VIM="${PWD}/_neovim/share/nvim/runtime"
38+ nvim --version
39+ make test
4940
5041 stylua :
5142 name : stylua
52- runs-on : ubuntu-20 .04
43+ runs-on : ubuntu-22 .04
5344 steps :
54- - uses : actions/checkout@v2
55- - uses : JohnnyMorganz/stylua-action@v1
45+ - uses : actions/checkout@v3
46+ - uses : JohnnyMorganz/stylua-action@v2
5647 with :
5748 token : ${{ secrets.GITHUB_TOKEN }}
49+ version : latest
5850 # CLI arguments
5951 args : --color always --check .
0 commit comments