mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 08:51:54 -05:00
Aly Raffauf
1413801e6d
github: use DeterminateSystems nix installer github: run cicid on prs github/flake-update-inputs: use PAT to trigger subsequent workflows github: simplify workflow runs github: setup git after checkout github/flake-update-inputs: don't self assign reviews github/git-sync-mirrors: only run on master github: don't sync to codeberg github: only run nix checks on .nix updates github: only run nix checks on .nix and .lock updates github: ignore .github and _img paths
29 lines
684 B
YAML
29 lines
684 B
YAML
name: "nix"
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '.github/**'
|
|
- '_img/**'
|
|
workflow_dispatch:
|
|
jobs:
|
|
check-format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
- name: Install Nix
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
- name: check if flake complies with default style
|
|
run: nix fmt -- -c .
|
|
check-eval:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
- name: Install Nix
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
- name: check if flake evaluates
|
|
run: nix flake check
|