Cairo Serde Derive #179
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
name: CI | |
jobs: | |
unix-test: | |
name: Unix tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
toolchain: [stable] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Compile contracts | |
uses: software-mansion/setup-scarb@v1 | |
with: | |
scarb-version: "2.5.4" | |
- run: | | |
cd ./contracts && make generate_artifacts | |
- name: Setup toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
profile: minimal | |
override: true | |
- name: Run cargo tests | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
retry_wait_seconds: 30 | |
command: cargo test --workspace --all-features |