revert e530b3d623
CI / cargo fmt --check (push) Successful in 18s
CI / cargo clippy (push) Successful in 26s
CI / cargo test (push) Successful in 35s
CI / editor keymaps (push) Successful in 1m24s

revert Ci improvements (#3)

Reviewed-on: #3
This commit is contained in:
2026-06-03 23:36:11 +00:00
parent e530b3d623
commit 0de2bd9d68
2 changed files with 40 additions and 87 deletions
+12 -30
View File
@@ -2,44 +2,27 @@ name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "1"
RUST_BACKTRACE: short
RUSTFLAGS: -D warnings
jobs:
fmt:
name: cargo fmt --check
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.83
with:
components: rustfmt
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-fmt-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
restore-keys:
- ${{ runner.os }}-cargo-fmt-
- run: cargo fmt --all -- --check
clippy:
name: cargo clippy
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.83
@@ -52,14 +35,13 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
restore-keys:
- ${{ runner.os }}-cargo-clippy-
restore-keys: |
${{ runner.os }}-cargo-clippy-
- run: cargo clippy --workspace --all-targets -- -D warnings
test:
name: cargo test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.83
@@ -70,8 +52,8 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
restore-keys:
- ${{ runner.os }}-cargo-test-
restore-keys: |
${{ runner.os }}-cargo-test-
- run: cargo test --workspace --all-targets
keymaps:
@@ -92,15 +74,15 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
restore-keys:
- ${{ runner.os }}-cargo-test-
- name: install Neovim + Vim
restore-keys: |
${{ runner.os }}-cargo-test-
- name: install Neovim 0.11 + Vim
run: |
set -euo pipefail
# Test the minimum supported Neovim version (0.11.0) so we
# catch API regressions at the bottom of the supported range.
# Pinning to a specific patch version; bump when 0.12 ships.
NVIM_VER=v0.11.0
# Apt's neovim is too old (Ubuntu LTS ships 0.6/0.7), missing
# `vim.lsp.get_clients` and rejecting `@group.modifier`
# highlight names. Pull the official static tarball instead.
NVIM_VER=v0.11.3
curl -fsSL -o /tmp/nvim.tar.gz \
"https://github.com/neovim/neovim/releases/download/${NVIM_VER}/nvim-linux-x86_64.tar.gz"
sudo tar -xzf /tmp/nvim.tar.gz -C /opt