neovim-flake/.github/workflows/check.yml

36 lines
919 B
YAML
Raw Normal View History

2023-04-07 19:47:51 +02:00
name: "Validate flake & check formatting"
on:
pull_request:
2023-02-06 20:02:44 +01:00
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- .github/**
- assets/**
- .gitignore
jobs:
nix-flake-check:
2023-04-07 19:47:51 +02:00
name: Validate Flake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-04-08 01:32:47 +02:00
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix flake check
2023-04-07 19:47:51 +02:00
format-with-alejandra:
2023-04-08 01:32:47 +02:00
name: Formatting via Alejandra
2023-04-07 19:47:51 +02:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-04-08 01:32:47 +02:00
- uses: cachix/install-nix-action@v20
2023-04-07 19:47:51 +02:00
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 .