Feat/analytics and insight functions and tests #277
Workflow file for this run
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| env: | |
| SCARB_VERSION: 2.11.3 | |
| jobs: | |
| check: | |
| name: Check Project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Scarb | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v $SCARB_VERSION | |
| echo "${HOME}/.local/bin" >> $GITHUB_PATH | |
| - name: Install Starknet Foundry | |
| run: | | |
| curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh | |
| echo "${HOME}/.local/bin" >> $GITHUB_PATH | |
| - name: Check format | |
| run: scarb fmt --check | |
| test: | |
| runs-on: ubuntu-latest | |
| name: tests | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@main | |
| - name: Set up Scarb | |
| uses: software-mansion/setup-scarb@v1 | |
| with: | |
| scarb-version: "2.11.3" | |
| - name: Set up snforge | |
| uses: foundry-rs/setup-snfoundry@v3 | |
| with: | |
| starknet-foundry-version: "0.38.3" | |
| - name: Run tests | |
| run: snforge test |