diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10b1790..4ce3c9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,22 +9,16 @@ on: - main jobs: - build-and-test: + check: runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install Scarb - run: | - curl -L https://github.com/software-mansion/scarb/releases/download/v0.7.0/scarb-v0.7.0-x86_64-unknown-linux-gnu.tar.gz | tar xz - sudo mv scarb /usr/local/bin/ - - - name: Build contracts - run: | - scarb build - - - name: Run tests - run: | - scarb test + - uses: actions/checkout@v3 + - uses: software-mansion/setup-scarb@v1 + with: + scarb-version: "2.9.1" + - uses: foundry-rs/setup-snfoundry@v3 + with: + starknet-foundry-version: "0.32.0" + - run: snforge -V # Check the version of snforge + - run: scarb fmt --check + - run: scarb test