Skip to content

Commit

Permalink
finalize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bloomingpeach committed Nov 2, 2024
1 parent 5b9f8c9 commit 010395e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,23 @@ jobs:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- run: scarb test

cairo-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust nightly
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Install cairo-lint
run: cargo install scarb-cairo-lint --git https://github.com/keep-starknet-strange/cairo-lint

- uses: asdf-vm/actions/install@v3
- name: Run cairo-lint and check for warnings
run: |
scarb cairo-lint > lint_output.txt 2>&1
if grep -qi "warning:" lint_output.txt; then
echo "Linting failed due to warnings"
exit 1
fi

0 comments on commit 010395e

Please sign in to comment.