-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #445 from zimaexe/feat/workflow-cairo-tests
Added Cairo Tests to GitHub Actions
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Cairo Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install asdf & tools | ||
uses: asdf-vm/actions/install@v3 | ||
|
||
- name: Install Rust | ||
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
- name: Install Scarb | ||
run: | | ||
asdf --version | ||
asdf plugin add scarb | ||
asdf install scarb latest | ||
asdf global scarb latest | ||
scarb --version | ||
- name: Install Starknet Foundry | ||
run: | | ||
asdf plugin add starknet-foundry | ||
asdf install starknet-foundry 0.32.0 | ||
asdf global starknet-foundry 0.32.0 | ||
snforge --version | ||
- name: Build Cairo Contracts | ||
run: scarb build | ||
|
||
- name: Run Cairo Tests | ||
run: snforge test |