File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Run tests
1+ name : test
22on :
3- pull_request : ~
4- push :
3+ pull_request :
54 branches :
6- - main
5+ - master
6+
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.ref }}
9+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
710
811jobs :
9- build :
10- name : Run tests
11- runs-on : ubuntu-latest
12+ test :
13+ name : Run Test
14+ runs-on : ${{ matrix.os }}
1215 strategy :
1316 matrix :
14- neovim_version : ['nightly', 'stable' ]
15-
17+ os : [ubuntu-latest, macos-latest ]
18+ nvim_version : [nightly, 'v0.10.4']
1619 steps :
1720 - uses : actions/checkout@v4
18- - name : Download stylua
19- shell : bash
20- run : |
21- wget "https://github.com/JohnnyMorganz/StyLua/releases/download/v0.18.0/stylua-linux.zip" -P /home/runner/.local/bin
22- unzip /home/runner/.local/bin/stylua-linux.zip -d /home/runner/.local/bin
23- chmod +x /home/runner/.local/bin/stylua
24- - name : Run tests
25- uses : nvim-neorocks/nvim-busted-action@v1
21+ - uses : rhysd/action-setup-vim@v1
22+ with :
23+ neovim : true
24+ version : ${{ matrix.nvim_version }}
25+
26+ - uses : leafo/gh-actions-lua@v11
2627 with :
27- nvim_version : ${{ matrix.neovim_version }}
28+ luaVersion : " luajit-openresty"
29+ - uses : leafo/gh-actions-luarocks@v5
30+
31+ - name : Install vusted
32+ run : luarocks install vusted
33+
34+ - name : Run test
35+ run : vusted ./test
You can’t perform that action at this time.
0 commit comments