This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
Run treefmt in CI #2
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: treefmt | |
on: [push, pull_request] | |
jobs: | |
formatter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: treefmt | |
run: nix-shell \ | |
--package treefmt \ | |
--package nixpkgs-fmt \ | |
--package shfmt \ | |
--package shellcheck \ | |
--package black \ | |
--package nodePackages.prettier \ | |
--package codespell \ | |
--command "treefmt --fail-on-change --no-cache" | |