Skip to content

chore: updates flake.lock #411

chore: updates flake.lock

chore: updates flake.lock #411

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
NIX_CHANNEL: nixpkgs=channel:nixos-24.05
jobs:
# This job checks if an identical workflow is being triggered by different
# event and skips it. For instance there is no need to run the same pipeline
# twice for pull_request and push for identical commit sha.
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
skip_after_successful_duplicate: 'true'
concurrent_skipping: same_content
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
nixpkgs-fmt:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v30
with:
nix_path: ${{ env.NIX_CHANNEL }}
- uses: actions/checkout@v4
- name: Check format
run: nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt --check .'
nix-flake-check:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v30
with:
nix_path: ${{ env.NIX_CHANNEL }}
- uses: actions/checkout@v4
- name: Run nix flake check
run: nix flake check