diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 7e5531c89..f4f58eaa0 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -67,15 +67,15 @@ jobs: echo "Found existing starknet-devnet-rs build, skipping compilation." fi - - name: Install scarb 0.6.0 - run: | - curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 0.6.0 - echo "SCARB_PATH=$(which scarb)" >> "$GITHUB_ENV" + - name: Setup scarb 0.6.0 + uses: software-mansion/setup-scarb@v1.3.1 + with: + scarb-version: "0.6.0" - name: Install sncast 0.4.1 run: | curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh -s -- -v 0.4.1 - echo "SNCAST_PATH=$(which sncast)" >> "$GITHUB_ENV" + echo "$(dirname $(which sncast))" >> $GITHUB_PATH - name: Run tests run: |