fix: updated run scarb command #1
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: Cairo CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
cairo-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Scarb | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh | |
# Add Scarb to PATH permanently for the workflow | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.scarb | |
target/ | |
key: ${{ runner.os }}-scarb-${{ hashFiles('**/Scarb.toml') }} | |
restore-keys: | | |
${{ runner.os }}-scarb- | |
- name: Run Cairo tests | |
run: | | |
scarb --version | |
scarb test | |
- name: Run Cairo format check | |
run: scarb fmt --check |