Skip to content

snforge

snforge #188

Workflow file for this run

name: Test
on: [push, pull_request]
env:
SCARB_VERSION: 0.7.0
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"
- uses: foundry-rs/setup-snfoundry@v1
with:
starknet-foundry-version: 0.9.0
- name: Run cairo tests
run: snforge
# - name: Set up Scarb
#ses: software-mansion/setup-scarb@v1
# Install Scarb from a nightly release
# run: |
# NIGHTLY_DATE=$(echo ${SCARB_VERSION} | cut -d '+' -f 2)
# wget https://github.com/software-mansion/scarb-nightlies/releases/download/${NIGHTLY_DATE}/scarb-${NIGHTLY_DATE}-x86_64-unknown-linux-gnu.tar.gz
# tar -xvf scarb-${NIGHTLY_DATE}-x86_64-unknown-linux-gnu.tar.gz
# sudo mv scarb-v${SCARB_VERSION}-x86_64-unknown-linux-gnu/bin/scarb /usr/local/bin