-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (37 loc) · 1.32 KB
/
run_scripts.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
41
42
43
44
45
46
name: Run scripts
on: pull_request
jobs:
run_scripts:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pragma-deployer
steps:
- uses: actions/checkout@v3
- name: Install Starknet Devnet RS
run: |
wget https://github.com/0xSpaceShard/starknet-devnet-rs/releases/download/v0.1.2/starknet-devnet-x86_64-unknown-linux-gnu.tar.gz
tar -xvf starknet-devnet-x86_64-unknown-linux-gnu.tar.gz
chmod +x starknet-devnet
sudo mv starknet-devnet /usr/local/bin/
rm -f starknet-devnet-x86_64-unknown-linux-gnu.tar.gz
- name: Make script executable
run: chmod +x scripts/devnet.sh
- name: Set up Python and install Poetry
uses: actions/setup-python@v4
with:
python-version: "3.12"
- run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Set up Scarb
uses: software-mansion/setup-scarb@v1
- name: Build with Scarb
run: |
cd ../pragma-oracle
scarb build
- name: Run Starknet Devnet and scripts
env:
DEVNET_ACCOUNT_ADDRESS: "0x260a8311b4f1092db620b923e8d7d20e76dedcc615fb4b6fdf28315b81de201"
DEVNET_PRIVATE_KEY: "0xc10662b7b247c7cecf7e8a30726cff12"
run: bash scripts/devnet.sh