generated from keep-starknet-strange/alexandria
-
Notifications
You must be signed in to change notification settings - Fork 82
37 lines (30 loc) · 957 Bytes
/
gas_reports.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
name: Compare Snapshot
on: pull_request
permissions:
pull-requests: write
jobs:
compare-snapshot:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x" # Specify the Python version required
- name: Set up Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"
- name: Run compare_snapshot script
id: run-script
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
result=$(python scripts/compare_snapshot.py)
result=$(echo "$result" | tail -n +3) # Strip the first two lines
result="${result//'%'/'%25'}"
result="${result//$'\n'/'%0A'}"
result="${result//$'\r'/'%0D'}"
echo "::set-output name=result::${result}"