Skip to content

Commit

Permalink
Merge pull request #7 from Joewizy/feature/ci-implementation
Browse files Browse the repository at this point in the history
Feature/ci implementation
  • Loading branch information
ONEONUORA authored Jan 24, 2025
2 parents ef834ea + d94fb49 commit 2ffbf07
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@ on:
- main

jobs:
build-and-test:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Scarb
run: |
curl -L https://github.com/software-mansion/scarb/releases/download/v0.7.0/scarb-v0.7.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
sudo mv scarb /usr/local/bin/
- name: Build contracts
run: |
scarb build
- name: Run tests
run: |
scarb test
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.9.1"
- uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: "0.32.0"
- run: snforge -V # Check the version of snforge
- run: scarb fmt --check
- run: scarb test

0 comments on commit 2ffbf07

Please sign in to comment.