Skip to content

Commit 40b4468

Browse files
Initial commit to load template for repo
0 parents  commit 40b4468

39 files changed

+1216
-0
lines changed

.github/workflows/autoupdate.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Auto Update Workflow
2+
permissions:
3+
contents: write
4+
5+
on:
6+
push:
7+
branches: [dev]
8+
9+
jobs:
10+
autoupdate:
11+
name: autoupdate
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- uses: docker://chinthakagodawita/autoupdate-action:v1
15+
env:
16+
GITHUB_TOKEN: "${{ secrets.PAT }}"
17+
PR_FILTER: "labelled"
18+
PR_LABELS: "autoupdate"
19+
PR_READY_STATE: "ready_for_review"
20+
MERGE_CONFLICT_ACTION: "ignore"
21+
MERGE_MSG: "Branch was auto-updated."
22+
EXCLUDED_LABELS: "autoupdate-rebase"
23+
autoupdate-rebase:
24+
name: autoupdate-rebase
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: peter-evans/rebase@v3
28+
with:
29+
token: ${{ secrets.PAT }}
30+
base: dev
31+
include-labels: |
32+
autoupdate-rebase
33+
exclude-labels: |
34+
autoupdate
35+
exclude-drafts: true
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- auto_merge_enabled
10+
- edited
11+
12+
concurrency:
13+
group: >
14+
${{ github.workflow }}-
15+
${{ github.ref }}-
16+
${{ github.event_name == 'pull_request' && 'PR' || github.sha }}
17+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
18+
19+
jobs:
20+
cairo_tests:
21+
runs-on: starkware-ubuntu-24.04-small
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Install Starknet Foundry
27+
- uses: foundry-rs/setup-snfoundry@v3
28+
with:
29+
starknet-foundry-version: "0.45.0"
30+
31+
- name: Install scarb
32+
uses: software-mansion/setup-scarb@v1
33+
with:
34+
scarb-version: "2.11.4"
35+
36+
- name: Install cairo-coverage
37+
run: |
38+
curl -L https://raw.githubusercontent.com/software-mansion/cairo-coverage/main/scripts/install.sh | sh
39+
40+
- name: Check Cairo formatting
41+
run: scarb fmt -w --check
42+
43+
- name: Run test and coverage
44+
run: scarb test -w --coverage
45+
46+
- name: Upload coverage to Codecov
47+
- uses: codecov/codecov-action@v5
48+
with:
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
fail_ci_if_error: true
51+
verbose: true
52+
53+
54+
python_tests:
55+
runs-on: starkware-ubuntu-24.04-large
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- name: Install asdf
60+
run: scripts/install_asdf.sh
61+
62+
- name: Install starknet-devnet
63+
run: |
64+
asdf plugin add starknet-devnet
65+
asdf install starknet-devnet 0.3.0
66+
asdf global starknet-devnet 0.3.0
67+
68+
- name: Install scarb
69+
uses: software-mansion/setup-scarb@v1
70+
with:
71+
scarb-version: "2.11.4"
72+
73+
- name: Build Contracts
74+
run: scarb build
75+
76+
- name: Install Python
77+
uses: actions/setup-python@v4
78+
with:
79+
python-version: '3.10'
80+
cache: 'pip'
81+
82+
- name: Install python testdependencies
83+
run: pip install -r py_requirements.txt
84+
85+
- name: Run Python Tests
86+
run: scripts/python_tests.sh

.gitignore

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
dist
6+
.pnp
7+
.pnp.js
8+
9+
# testing
10+
coverage
11+
12+
# next.js
13+
.next/
14+
out/
15+
build
16+
17+
# misc
18+
.DS_Store
19+
*.pem
20+
21+
# debug
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
.pnpm-debug.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# turbo
34+
.turbo
35+
36+
# IDE
37+
.idea
38+
.vscode
39+
40+
.history
41+
42+
# Vite
43+
**/vite.config.ts.timestamp-*
44+
45+
# run-rs
46+
data
47+
48+
# mocha
49+
coverage/
50+
.nyc_output/
51+
52+
# building tests as part of build
53+
.mocharc.buildtests.js
54+
tsconfig.buildtests.json
55+
56+
# autoenv
57+
.in
58+
.out
59+
60+
#scarb
61+
target
62+
63+
#foundry
64+
.snfoundry_cache
65+
.snfoundry_versioned_programs
66+
snfoundry_trace
67+
coverage_report
68+
69+
#python
70+
venv/
71+
__pycache__
72+
73+
74+
# cursor
75+
.cursor

.tool-versions

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
starknet-foundry 0.45.0
2+
scarb 2.11.4
3+
starknet-devnet 0.3.0

0 commit comments

Comments
 (0)