Skip to content

Use composite github action to deduplicate nix and cachix setup #4591

Use composite github action to deduplicate nix and cachix setup

Use composite github action to deduplicate nix and cachix setup #4591

Workflow file for this run

name: Check code formatting
on:
# We're using merge-chains; so this needs to run then.
merge_group:
pull_request:
jobs:
formatting:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4
- name: ❄ Setup Nix/Cachix
uses: ./.github/actions/nix-cachix-setup
with:
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}'
- name: 📐 Check code formatting
run: |
nix build .#checks.x86_64-linux.treefmt
- name: 📐 Check hlint
run: |
nix build .#checks.x86_64-linux.hlint