-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: check contract artifact staleness
- Loading branch information
1 parent
1497446
commit 11e04e1
Showing
2 changed files
with
41 additions
and
1 deletion.
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,40 @@ | ||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
|
||
name: "Validate contract artifacts" | ||
|
||
jobs: | ||
check-artifacts: | ||
name: "Check artifacts" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout source code" | ||
uses: "actions/checkout@v3" | ||
with: | ||
submodules: true | ||
|
||
- name: "Generate artifacts (Cairo 0)" | ||
run: | | ||
cd ./starknet-core/test-data/contracts/cairo0 | ||
./generate_artifacts.sh | ||
- name: "Generate artifacts (Cairo 1)" | ||
run: | | ||
cd ./starknet-core/test-data/contracts/cairo1 | ||
./generate_artifacts.sh | ||
- name: "Generate artifacts (Cairo 2)" | ||
run: | | ||
cd ./starknet-core/test-data/contracts/cairo2 | ||
./generate_artifacts.sh | ||
- name: "Check Git diffs" | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "Git diffs found. Make sure contract artifacts are up to date." >&2 | ||
exit 1 | ||
fi |
Oops, something went wrong.