diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5e2cb3f..bb4921c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,56 +14,19 @@ 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: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install Neovim ${{ matrix.neovim }} + - name: Install Neovim v0.10.2 uses: rhysd/action-setup-vim@v1 with: neovim: true - version: ${{ matrix.neovim }} + version: v0.10.2 - name: Install latest stable `rustc` uses: dtolnay/rust-toolchain@stable + - name: Check target dir + run: cargo metadata --format-version 1 --manifest-path Cargo.toml | jq -r .target_directory - 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 + run: cargo test --workspace --features neovim-0-10