Skip to content

Test: Add tests for functions in helpers.cairo #303

Test: Add tests for functions in helpers.cairo

Test: Add tests for functions in helpers.cairo #303

Workflow file for this run

name: Build and test Dojo contracts
on: [push, pull_request]
jobs:
sozo-test:
runs-on: ubuntu-latest
env:
DOJO_VERSION: v1.1.2
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.9.2"
- run: |
curl -L https://install.dojoengine.org | bash
/home/runner/.config/.dojo/bin/dojoup -v ${{ env.DOJO_VERSION }}
- run: |
cd onchain
/home/runner/.config/.dojo/bin/sozo build
/home/runner/.config/.dojo/bin/sozo test
if [[ `git status --porcelain` ]]; then
echo The git repo is dirty
echo "Make sure to run \"sozo build\" after changing Scarb.toml"
exit 1
fi