Skip to content

Commit

Permalink
Merge pull request #445 from zimaexe/feat/workflow-cairo-tests
Browse files Browse the repository at this point in the history
Added Cairo Tests to GitHub Actions
  • Loading branch information
faurdent authored Dec 27, 2024
2 parents 9520d8b + 6a97d18 commit bfa0a61
Showing 1 changed file with 43 additions and 0 deletions.
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

0 comments on commit bfa0a61

Please sign in to comment.