fix(compat): support nvim 0.12 with targeted workarounds #26
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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| --- | |
| name: "CI: Lint & Flake Check" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "lua/**" | |
| - "stylua.toml" | |
| - "selene.toml" | |
| - "vim.yml" | |
| - "flake.nix" | |
| - "flake.lock" | |
| - ".github/workflows/ci.yml" | |
| pull_request: | |
| paths: | |
| - "lua/**" | |
| - "stylua.toml" | |
| - "selene.toml" | |
| - "vim.yml" | |
| - "flake.nix" | |
| - "flake.lock" | |
| - ".github/workflows/ci.yml" | |
| # id-token: write omitted — not using FlakeHub cache | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| stylua: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Run StyLua check | |
| uses: JohnnyMorganz/stylua-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: --check --config-path=stylua.toml . | |
| selene: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Run Selene | |
| uses: NTBBloodbath/selene-action@v1.0.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| args: --display-style=quiet . | |
| flake-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install Nix | |
| uses: DeterminateSystems/determinate-nix-action@v3 | |
| - name: Run flake checks | |
| run: nix flake check |