Skip to content

Commit

Permalink
Merge pull request #35 from mubarak23/ft_github_ci
Browse files Browse the repository at this point in the history
Setup CI workflow
  • Loading branch information
Samuel1-ona authored Jan 30, 2025
2 parents 23aec2e + dff1bfa commit ed87f77
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build_contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build

on: [push, pull_request]

permissions: read-all

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

on: [push, pull_request]
permissions: read-all

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
- uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: 0.31.0
- name: Run cairo tests
run: snforge test

0 comments on commit ed87f77

Please sign in to comment.