-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add actions for testing contract
- Loading branch information
1 parent
20b9ac1
commit a2f1aac
Showing
6 changed files
with
79 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: ci-contracts | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "contracts/**" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "contracts/**" | ||
|
||
defaults: | ||
run: | ||
working-directory: contracts | ||
|
||
jobs: | ||
sozo-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: curl -L https://install.dojoengine.org | bash | ||
- run: /home/runner/.config/.dojo/bin/dojoup -v v0.7.0-alpha.4 | ||
- run: | | ||
scarb fmt --check | ||
/home/runner/.config/.dojo/bin/sozo test | ||
/home/runner/.config/.dojo/bin/sozo build | ||
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 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ mod models; | |
mod actions; | ||
mod traits; | ||
mod utils; | ||
mod tests; |
This file contains 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