Skip to content

Commit

Permalink
ci: add windows-latest test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ryall committed Jan 4, 2024
1 parent 6494af8 commit 0c571cb
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
Expand All @@ -21,21 +21,25 @@ jobs:
- name: luajit
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit-2.1.0-beta3"
luaVersion: "5.1"
# luaVersion: "luajit-2.1.0-beta3"

- name: luarocks
uses: leafo/gh-actions-luarocks@v4
- uses: notomo/action-setup-nvim-lua@v1
- run: luarocks install vusted
- run: luarocks install luacheck
- run: luarocks install plenary

- name: install plenary.nvim
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary
# git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
- name: setup tools
shell: bash
run: |
luarocks install luacheck
luarocks install vusted
# - name: install plenary.nvim
# if: matrix.os != 'windows-latest'
# run: |
# git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary
#
# - name: install plenary.nvim on windows
# if: matrix.os == 'windows-latest'
# run: |
# git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/AppData/Local/nvim
# ls -l ~/AppData/Local/nvim
# # mv ~/AppData/Local/nvim/plenary/lua/plenary AppData\Roaming/luarocks/share/lua/5.1/.

- name: Run tests
shell: bash
Expand Down

0 comments on commit 0c571cb

Please sign in to comment.