Skip to content

Commit

Permalink
feat: Add GHA to run snforge test for contracts (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
raizo07 authored Jan 26, 2025
1 parent 253ce14 commit 1f4aed3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/snforge-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: snforge Contract Tests

on:
pull_request:
branches: ["main"]
paths:
- "src/**"
- "tests/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.3.1"

- name: Install snforge
run: curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh

- name: Run snforge tests
run: snforge test

- name: Upload test logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-logs
path: target/snforge/*.log

0 comments on commit 1f4aed3

Please sign in to comment.