Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fact_registry test #132

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

jobs:
formatting-and-testing:
verifier-formatting-and-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -20,5 +20,20 @@ jobs:
- name: Run tests
run: scarb test

- name: Build fact registry
run: (cd fact_registry && scarb build)
fact-registry-formatting-and-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Scarb
uses: software-mansion/setup-scarb@v1

- name: Setup Starknet Foundry
uses: foundry-rs/setup-snfoundry@v3

- name: Format code
run: cd fact_registry && scarb fmt --check

- name: Run tests
run: cd fact_registry && scarb test
8 changes: 7 additions & 1 deletion fact_registry/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ edition = "2023_10"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.6.3"
cairo_verifier = { path = ".." }

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.24.0" }

[[target.starknet-contract]]
casm = true
sierra = true

[scripts]
test = "snforge test"
Loading
Loading