Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Dec 26, 2024
1 parent 78a3a6c commit 12cd9b4
Showing 1 changed file with 54 additions and 6 deletions.
60 changes: 54 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,67 @@ jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
neovim: [v0.9.5, v0.10.2, Nightly]
include:
- neovim: v0.9.5
features: "--features neovim-0-9"
- neovim: v0.10.2
features: "--features neovim-0-10"
- neovim: Nightly
features: "--features neovim-nightly"

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Install Neovim v0.10.2
- name: Install Neovim ${{ matrix.neovim }}
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: v0.10.2
- name: Install LuaJIT
version: ${{ matrix.neovim }}
- name: Install LuaJIT (macOS)
if: runner.os == 'macOS'
run: brew install luajit-openresty
- name: Install LuaJIT (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev
- name: Install LuaJIT (Windows)
if: runner.os == 'Windows'
run: |
choco install luajit
echo "C:\ProgramData\chocolatey\lib\luajit\tools" >> $GITHUB_PATH
- name: Install latest stable `rustc`
uses: dtolnay/rust-toolchain@stable
- name: Test
run: cargo test --workspace --features neovim-0-10
- name: Run tests
run: cargo test --workspace ${{ matrix.features }}
working-directory: .

clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- run: cargo clippy --features neovim-nightly -- -D warnings

docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: RUSTFLAGS="-D warnings" RUSTDOCFLAGS="--cfg docsrs" cargo doc --features neovim-nightly

format:
name: format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --check

0 comments on commit 12cd9b4

Please sign in to comment.