languages/bash: add LSP #451
Workflow file for this run
This file contains 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: "Validate flake & check formatting" | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .github/** | |
- assets/** | |
- .gitignore | |
jobs: | |
nix-flake-check: | |
name: Validate Flake | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- run: nix flake check | |
format-with-alejandra: | |
name: Formatting via Alejandra | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
install_url: https://nixos.org/nix/install | |
extra_nix_config: | | |
auto-optimise-store = true | |
experimental-features = nix-command flakes | |
- run: nix run nixpkgs#alejandra -- -c . |