Skip to content

Commit

Permalink
fix: failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
0xibs committed Feb 6, 2025
1 parent be14a5f commit 2cb74aa
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/test_contracts.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
name: Test Dojo contracts
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
- run: curl -L https://install.dojoengine.org | bash
- run: /home/runner/.config/.dojo/bin/dojoup -v v1.1.2
- 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

0 comments on commit 2cb74aa

Please sign in to comment.