Skip to content

fix: updated run scarb command #1

fix: updated run scarb command

fix: updated run scarb command #1

Workflow file for this run

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