Skip to content
name: ArkProject contracts ci
on:
push:
branches:
- main
paths:
- "contracts/**"
pull_request:
paths:
- "contracts/**"
jobs:
fmt:
runs-on: ubuntu-latest
name: Cairo formatting
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install universal sierra compiler
run: curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh
- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.7.1
- name: Check Scarb Formatting
run: cd contracts && scarb fmt --check
test:
runs-on: ubuntu-latest
name: Cairo starknet foundry tests
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install universal sierra compiler
run: curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh
- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.7.1
- name: Setup Starknet Foundry
uses: foundry-rs/setup-snfoundry@v2
with:
starknet-foundry-version: 0.28.0
- name: Test ark_common contracts
run: cd contracts/ark_common && snforge test
- name: Test ark_orderbook contracts
run: cd contracts/ark_orderbook && snforge test
- name: Test ark_starknet contracts
run: cd contracts/ark_starknet && snforge test
- name: Test ark_tokens contracts
run: cd contracts/ark_tokens && snforge test