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

Added Cairo Tests to GitHub Actions #445

Merged
merged 1 commit into from
Dec 27, 2024
Merged
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
43 changes: 43 additions & 0 deletions .github/workflows/cairo_tests.yml
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
Loading