Validate txs in model #1137
Workflow file for this run
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: Check code formatting | |
on: | |
pull_request: | |
jobs: | |
formatting: | |
name: Check code formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout repository | |
uses: actions/checkout@v4 | |
- name: ❄ Prepare nix | |
uses: cachix/install-nix-action@v25 | |
with: | |
extra_nix_config: | | |
accept-flake-config = true | |
log-lines = 1000 | |
- name: ❄ Cachix cache of nix derivations | |
uses: cachix/cachix-action@v14 | |
with: | |
name: cardano-scaling | |
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' | |
- name: 📐 Check code formatting | |
run: | | |
nix develop .#fmt --command treefmt --fail-on-change | |
- name: 📐 Check hlint | |
run: | | |
nix develop .#fmt --command hlint . |