From 540471e574ed07d6faeb748f12e53b7cbe3d1439 Mon Sep 17 00:00:00 2001 From: alex ohre Date: Fri, 9 May 2025 04:13:20 +0100 Subject: [PATCH] chore: update github action workflow Signed-off-by: alex ohre --- .github/workflows/test.yml | 40 ++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index acda99c..5cf51ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,20 +1,30 @@ -name: Test Cohort 4 Contracts -on: - push: - pull_request: +name: Check, Build and Test Cohort 4 Contracts + +on: [push, pull_request] +permissions: read-all + jobs: - check: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - name: Setup Starknet Foundry - uses: foundry-rs/setup-snfoundry@v3 - - - name: Setup Scarb - uses: software-mansion/setup-scarb@v1 + - uses: actions/checkout@v3 + - uses: software-mansion/setup-scarb@v1 with: - scarb-lock: ../../Scarb.lock + scarb-version: 2.11.4 + - name: Check cairo format + run: scarb fmt --check + - name: Build cairo programs + run: scarb build - - name: Run tests - run: scarb build && scarb test \ No newline at end of file + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: software-mansion/setup-scarb@v1 + with: + scarb-version: 2.11.4 + - uses: foundry-rs/setup-snfoundry@v3 + with: + starknet-foundry-version: 0.40.0 + - name: Run cairo tests + run: snforge test