-
Notifications
You must be signed in to change notification settings - Fork 26
56 lines (49 loc) · 1.61 KB
/
arkproject-contracts.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
47
48
49
50
51
52
53
54
55
56
name: ArkProject contracts ci
on:
push:
branches:
- main
paths:
- "contracts/**"
pull_request:
paths:
- "contracts/**"
jobs:
fmt:
runs-on: ubuntu-latest
name: Cairo formatting
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install universal sierra compiler
run: curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh
- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.7.1
- name: Check Scarb Formatting
run: cd contracts && scarb fmt --check
test:
runs-on: ubuntu-latest
name: Cairo starknet foundry tests
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install universal sierra compiler
run: curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh
- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.7.1
- name: Setup Starknet Foundry
uses: foundry-rs/setup-snfoundry@v2
with:
starknet-foundry-version: 0.28.0
- name: Test ark_common contracts
run: cd contracts/ark_common && snforge test
- name: Test ark_orderbook contracts
run: cd contracts/ark_orderbook && snforge test
- name: Test ark_starknet contracts
run: cd contracts/ark_starknet && snforge test
- name: Test ark_tokens contracts
run: cd contracts/ark_tokens && snforge test