Skip to content

Commit

Permalink
add github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
loothero committed Aug 28, 2024
1 parent 66900ea commit b8892f4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Test Contracts

on:
push:
branches:
- main
pull_request:

env:
SCARB_VERSION: 2.7.1
FOUNDRY_VERSION: 0.27.0
MAX_N_STEPS: 4294967295

jobs:
build:
name: Build and Test Contracts
runs-on: ubuntu-latest
strategy:
matrix:
contract: [
syndicate
]
steps:
- uses: actions/checkout@v3

- name: Install Scarb
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v ${{ env.SCARB_VERSION }}

- name: Install Foundry
run: curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | bash && source ~/.bashrc && snfoundryup -v ${{ env.FOUNDRY_VERSION }}

- name: Build and Test ${{ matrix.contract }}
run: cd contracts/${{ matrix.contract }} && snforge test --max-n-steps ${{ env.MAX_N_STEPS }}

0 comments on commit b8892f4

Please sign in to comment.