Skip to content

Added debug

Added debug #333

Workflow file for this run

name: Test
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
push:
branches:
- main
- add_windows_support_003
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
neovim: [v0.10.0, stable, nightly]
luaVersion: ["luajit-openresty"]
include:
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.1"
neovim: "v0.10.0"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.1"
neovim: "stable"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.1"
neovim: "nightly"
# Alternative toolchain
- os: "windows-latest"
toolchain: "mingw"
luaVersion: "5.1"
neovim: "stable"
runs-on: ${{ matrix.os }}
name: "OS: ${{ matrix.os }} - Neovim: ${{ matrix.neovim }} - Lua: ${{ matrix.luaVersion }}"
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim }}
- name: Debug matrix values
run: |
echo "OS: ${{ matrix.os }}"
echo "Neovim: ${{ matrix.neovim }}"
echo "LuaVersion: ${{ matrix.luaVersion }}"
echo "Toolchain: ${{ matrix.toolchain }}"
- name: Setup MSVC
# the 'luarocks/gh-actions-lua' step requires msvc to build PUC-Rio Lua
# versions on Windows (LuaJIT will be build using MinGW/gcc).
if: ${{ matrix.toolchain == 'msvc' }}
uses: ilammy/msvc-dev-cmd@v1
- name: Install Lua
uses: luarocks/gh-actions-lua@master
with:
luaVersion: "${{ matrix.luaVersion }}"
- name: Install LuaRocks
uses: luarocks/gh-actions-luarocks@v5
# We need this hack until a better solution is available.
#
# Reference: https://github.com/nvim-neorocks/luarocks-tag-release/issues/435
#
- name: Expand The Template Rockspec
# TODO: Revert later
# uses: ColinKennedy/luarocks-rockspec-expander@v1.0.0
uses: ./.github/actions/luarocks-rockspec-expander
with:
input: template.rockspec
output: nvim-best-practices-plugin-template-scm-1.rockspec
delete_input_after: true
- name: Build Test Dependencies
run: |
luarocks test nvim-best-practices-plugin-template-scm-1.rockspec --prepare
- name: Test
run: |
luarocks test --test-type busted