Update config.org #84
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: Statix Lint | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
outputs: | |
lint-success: ${{ steps.build-result.outputs.success }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Run statix linter | |
run: | | |
echo "Linting Flake..." | |
if nix run --extra-experimental-features 'nix-command flakes' nixpkgs#statix -- check .; then | |
echo "success=true" >> $GITHUB_ENV | |
else | |
echo "Lint failed, listing flake.lock for debugging:" | |
cat flake.lock | |
echo "success=false" >> $GITHUB_ENV | |
exit 1 | |
fi | |
- name: Determine lint result | |
id: build-result | |
run: echo "success=${{ env.success }}" >> $GITHUB_OUTPUT |