Skip to content

nix: Refactor CLI flake checks into idiomatic Nix derivations #53

nix: Refactor CLI flake checks into idiomatic Nix derivations

nix: Refactor CLI flake checks into idiomatic Nix derivations #53

Workflow file for this run

name: CI
on:
push:
permissions:
contents: read
jobs:
smoke:
name: Smoke tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Dry build SCE package
run: nix build .#checks.x86_64-linux.sce-package --dry-run --print-out-paths
- name: Run pkl generated parity check
run: nix run .#pkl-check-generated
- name: Run agnix validate
working-directory: config
run: nix develop -c agnix validate .
nix-flake-check:
name: Nix flake check
needs: smoke
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Run nix flake check
run: nix flake check
token-count:
name: Token count
needs: smoke
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Run workflow token-count
run: nix run .#token-count-workflows
- name: Upload token-count artifacts
uses: actions/upload-artifact@v4
with:
name: workflow-token-footprint
path: |
context/tmp/token-footprint/workflow-token-count-latest.json
context/tmp/token-footprint/workflow-token-count-latest.md
context/tmp/token-footprint/workflow-token-count-*.json
context/tmp/token-footprint/workflow-token-count-*.md
if-no-files-found: error