Skip to content

fix: fix ci

fix: fix ci #19

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.4.0
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: '2.9.4'
- name: Install Dojo
run: |
mkdir -p /home/runner/.config/.dojo/bin
curl -L https://github.com/dojoengine/dojo/releases/download/v1.4.0/dojoup -o /home/runner/.config/.dojo/bin/dojoup
chmod +x /home/runner/.config/.dojo/bin/dojoup
/home/runner/.config/.dojo/bin/dojoup -v ${{ env.DOJO_VERSION }}
/home/runner/.config/.dojo/bin/dojoup install
- name: Build and Test
run: |
/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