Audit #3072
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: Lint | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
pull_request: | |
jobs: | |
lint_format_check: | |
name: Format Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Install Nix | |
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Install Cairo | |
uses: ./.github/actions/install-cairo | |
- name: Install | |
run: nix develop -c yarn install --frozen-lockfile | |
# NOTE: Runs outside the nix environment because starknet-devnet still pulls in 0.x cairo which ends up taking precedence. | |
- name: Check Cairo | |
run: make format-cairo-check | |
- name: Check Typescript | |
run: nix develop -c make format-ts-check |