mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
feat: Setup Workflows
This commit is contained in:
parent
3eecea6503
commit
b323399182
5 changed files with 38 additions and 13 deletions
20
.github/workflows/flake-checks.yaml
vendored
Normal file
20
.github/workflows/flake-checks.yaml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Flake check
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
build:
|
||||
name: Check flake
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check Nix flake inputs
|
||||
uses: DeterminateSystems/flake-checker-action@v4
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v3
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Check for dead code
|
||||
run: git ls-files '*.nix' | nix run nixpkgs#deadnix
|
||||
- name: Check for lints
|
||||
run: nix run nixpkgs#statix -- check
|
||||
Loading…
Add table
Add a link
Reference in a new issue