-
Notifications
You must be signed in to change notification settings - Fork 104
40 lines (33 loc) · 977 Bytes
/
artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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