Skip to content

imp: cairo/scarb structure suggestions (#78) #28

imp: cairo/scarb structure suggestions (#78)

imp: cairo/scarb structure suggestions (#78) #28

name: Cairo Contracts
on:
pull_request: {}
push:
tags:
- v[0-9]+.*
branches:
- "release/*"
- main
jobs:
test-contracts:
name: Test Cairo Contracts
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: ibc-starknet
extraPullNames: hermes-sdk,cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Check Meta Package
working-directory: ./cairo-contracts
run: |
nix shell ..#scarb -c \
scarb check
- name: Build Cairo contracts
working-directory: ./cairo-contracts
run: |
nix shell ..#scarb -c \
scarb build -p starknet_ibc_contracts
- name: Run Tests
working-directory: ./cairo-contracts
run: |
nix develop -c \
snforge test -w