Skip to content

Commit

Permalink
🧱 add CI workflows for contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Dec 13, 2023
1 parent 711bcdd commit f363d01
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/contracts_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on: [push, pull_request]

env:
SCARB_VERSION: 2.3.1

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.3.1"
- name: Check cairo format
run: scarb fmt --check
working-directory: contracts
- name: Build cairo programs
run: scarb build
working-directory: contracts
21 changes: 21 additions & 0 deletions .github/workflows/contracts_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on: [push, pull_request]

env:
SCARB_VERSION: 2.3.1

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ env.SCARB_VERSION }}
- uses: foundry-rs/setup-snfoundry@v2
with:
starknet-foundry-version: 0.10.1
- name: Run cairo tests
run: snforge test
working-directory: contracts

0 comments on commit f363d01

Please sign in to comment.