Skip to content

Commit

Permalink
add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaciport committed Nov 2, 2024
1 parent 010395e commit 7b81a12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Rust nightly
uses: dtolnay/rust-toolchain@nightly
- name: Cache Rust dependencies
uses: actions/cache@v3

with:
components: rustfmt, clippy
- name: Install cairo-lint
Expand All @@ -40,7 +43,7 @@ jobs:
- 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
if grep -qi "warning" lint_output.txt; then
echo "Linting failed due to warnings"
exit 1
fi

0 comments on commit 7b81a12

Please sign in to comment.