Skip to content

test(payments): add trade tests #68

test(payments): add trade tests

test(payments): add trade tests #68

name: CI
on:
pull_request:
branches:
- main
jobs:
cairo_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: "0.45.0"
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.11.4"
- name: Install cairo-coverage
run: |
curl -L https://raw.githubusercontent.com/software-mansion/cairo-coverage/main/scripts/install.sh | sh
- name: Run test and coverage
run: scarb test -w --coverage
# - uses: codecov/codecov-action@v5
# with:
# fail_ci_if_error: true
- name: Check formatting
run: scarb fmt -w --check
- name: Build Contracts
run: scarb build