-
Notifications
You must be signed in to change notification settings - Fork 21
104 lines (97 loc) · 2.69 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Run tests
on:
- push
- pull_request
jobs:
ubuntu-ppa:
runs-on: ubuntu-latest
strategy:
matrix:
ppa-version:
# the ppa is currently on 0.7.2 but we need >=0.9
#- stable
- unstable
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: |
sudo add-apt-repository -y ppa:neovim-ppa/${{ matrix.ppa-version }}
sudo apt-get update
sudo apt-get install -yqq --no-install-recommends neovim scdoc lua-busted
- name: Run the test suite
run: make test BUSTED='busted --exclude-tags=ppa'
env:
TERM: dumb
appimage:
runs-on: ubuntu-latest
strategy:
matrix:
appimage-version:
- v0.9.0
- nightly
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -yqq --no-install-recommends scdoc lua-busted
- name: Download official neovim appimage
run: |
wget https://github.com/neovim/neovim/releases/download/${{ matrix.appimage-version }}/nvim.appimage{,.sha256sum}
sha256sum -c nvim.appimage.sha256sum
chmod +x nvim.appimage
./nvim.appimage --appimage-extract
- name: Run the test suite
run: make test BUSTED='busted --exclude-tags=appimage'
env:
TERM: dumb
NVIMPAGER_NVIM: squashfs-root/usr/bin/nvim
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: |
brew update
brew install neovim scdoc luarocks
luarocks --local install busted
- name: Run the test suite
run: make test BUSTED="$HOME/.luarocks/bin/busted --exclude-tags=mac"
env:
TERM: dumb
macos-nix:
runs-on: macos-latest
steps:
- name: Install Nix
uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: nix-community
- uses: actions/checkout@v3
- name: Run the test suite via nix
run: nix build --print-build-logs
nix:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- default
- nightly
update:
- false
- true
exclude:
- package: nightly
update: false
steps:
- name: Install Nix
uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: nix-community
- uses: actions/checkout@v3
- name: Update the fake inputs
run: nix flake update
if: matrix.update
- name: Run the test suite with ${{ matrix.package }} neovim
run: nix build --print-build-logs '.#${{ matrix.package }}'