Skip to content

Commit

Permalink
add CI for cairo
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Oct 16, 2024
1 parent dcc24fb commit a325e90
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: ci
on: push
env:
CARGO_TERM_COLOR: always
SCARB_VERSION: 2.7.0
jobs:
fmt:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -40,3 +41,33 @@ jobs:
- name: Run tests
working-directory: ./server
run: cargo test --workspace --verbose

check-cairo:
runs-on: ubuntu-latest
name: Check cartridge-vrf format
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ env.SCARB_VERSION }}
- name: Format
run: scarb fmt --check

build-cairo:
needs: check
runs-on: ubuntu-latest
name: Build cartridge-vrf
steps:
- uses: actions/checkout@v4
- name: Build
run: scarb build

test-cairo:
needs: [check-cairo, build-cairo]
runs-on: ubuntu-latest
name: Test cartridge-vrf
steps:
- uses: actions/checkout@v4
- uses: foundry-rs/setup-snfoundry@v3
- name: Test
run: snforge test

0 comments on commit a325e90

Please sign in to comment.