Skip to content

Update CI

Update CI #220

Workflow file for this run

name: CI
on:
push:
paths:
- '**.cairo'
- '.github/'
- 'Scarb.lock'
- 'Scarb.toml'
env:
SCARB_VERSION: 2.6.3
FOUNDRY_VERSION: 0.19.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Install Scarb
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v $SCARB_VERSION
- name: Check formatting
run: scarb fmt --check
- name: Install SnFoundryUp
run: curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh
- name: Install SnFoundry
run: snfoundryup -v $FOUNDRY_VERSION
- name: Run tests with snforge
run: snforge test