ci: install neovim against nixpkgs #44
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
| name: test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Lix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
| logger: pretty | |
| diagnostic-endpoint: "" | |
| - name: Install Neovim | |
| run: nix profile install nixpkgs#neovim | |
| - name: Run Tests | |
| run: | | |
| nvim --version | |
| [ ! -d tests ] && exit 0 | |
| tests/./run | |
| stylua: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Lix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
| logger: pretty | |
| diagnostic-endpoint: "" | |
| - name: Run stylua | |
| run: nix run nixpkgs#stylua -- -c . | |
| selene: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Lix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
| logger: pretty | |
| diagnostic-endpoint: "" | |
| - name: Run selene | |
| run: nix run nixpkgs#selene -- . |