Add stricter types and fix issue with smods
#194
This file contains 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: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
jobs: | |
test: | |
name: Plenary Busted Tests | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
nvim_version: | |
- 0.10.0 | |
- 0.10.1 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
path: compile-mode.nvim | |
- name: Setup `plenary.nvim` | |
uses: actions/checkout@v4 | |
with: | |
repository: nvim-lua/plenary.nvim | |
path: plenary.nvim | |
# workaround for https://github.com/actions/runner-images/issues/10984 | |
- name: Fix Homebrew Issue | |
run: | | |
brew uninstall --ignore-dependencies --force [email protected] | |
if: matrix.os == 'macos-latest' | |
- name: Install Neovim | |
uses: MunifTanjim/setup-neovim-action@v1 | |
with: | |
tag: v${{ matrix.nvim_version }} | |
if: matrix.os != 'windows-latest' | |
- name: Install Neovim (Windows) | |
run: | | |
choco install neovim --version=${{ matrix.nvim_version }} | |
echo 'C:\tools\neovim\nvim-win64\bin' | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
if: matrix.os == 'windows-latest' | |
- name: Run Tests | |
run: | | |
cd compile-mode.nvim | |
make setup-ci | |
make test |