chore(main): release 2.0.0 #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
neovim: [v0.10.0, v0.11.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" | |
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: 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@v11 | |
with: | |
luaVersion: "${{ matrix.luaVersion }}" | |
- name: Install LuaRocks | |
# TODO: Replace with https://github.com/luarocks/gh-actions-luarocks after v6+ | |
uses: ColinKennedy/gh-actions-luarocks@v1.0.0 | |
- name: Print Versions | |
run: | | |
luarocks --version | |
# 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 | |
uses: ColinKennedy/luarocks-rockspec-expander@v1.0.1 | |
with: | |
input: template.rockspec | |
output: cursor-text-objects-scm-1.rockspec | |
delete_input_after: true | |
- name: Build Test Dependencies | |
run: | | |
luarocks test cursor-text-objects-scm-1.rockspec --prepare | |
- name: Test | |
run: | | |
luarocks test --test-type busted |