fix: fix ci #19
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: 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 |