Commit efd73dc Bassam Data
committed
1 parent a6dd0af commit efd73dc Copy full SHA for efd73dc
File tree 1 file changed +54
-0
lines changed
1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Continuous Integration
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request : ~
8
+
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
11
+ cancel-in-progress : true
12
+
13
+ jobs :
14
+ tests :
15
+ runs-on : ubuntu-latest
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ include :
20
+ - os : ubuntu-latest
21
+ neovim_url : https://github.com/neovim/neovim/releases/download/nightly/nvim-linux-x86_64.tar.gz
22
+ - os : ubuntu-latest
23
+ neovim_url : https://github.com/neovim/neovim/releases/download/v0.10.0/nvim-linux64.tar.gz
24
+
25
+ steps :
26
+ - name : Checkout Repository 🛎️
27
+ uses : actions/checkout@v4
28
+
29
+ - name : Cache Neovim 📂
30
+ id : cache-neovim
31
+ uses : actions/cache@v4
32
+ with :
33
+ path : _neovim
34
+ key : neovim-${{ runner.os }}-${{ matrix.neovim_url }}
35
+
36
+ - name : Install Neovim 🏗️
37
+ if : steps.cache-neovim.outputs.cache-hit != 'true'
38
+ run : |
39
+ mkdir -p _neovim
40
+ curl -sL ${{ matrix.neovim_url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
41
+
42
+ - name : Setup Neovim Environment ⚙️
43
+ run : |
44
+ echo "Adding Neovim to PATH"
45
+ echo "${PWD}/_neovim/bin" >> $GITHUB_PATH
46
+ mkdir -p ~/.local/share/nvim/site/pack/vendor/start
47
+ ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
48
+
49
+ - name : Run Tests 🧪
50
+ run : |
51
+ export PATH="${PWD}/_neovim/bin:${PATH}"
52
+ export VIM="${PWD}/_neovim/share/nvim/runtime"
53
+ nvim --version
54
+ make test
You can’t perform that action at this time.
0 commit comments