-
Notifications
You must be signed in to change notification settings - Fork 49
40 lines (37 loc) · 1.04 KB
/
starknet-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
name: Starknet Contracts
on: [push, pull_request]
permissions: read-all
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: '2.6.5'
- name: Scarb version
run: scarb --version
working-directory: onchain/cairo
- name: Check cairo format
run: scarb fmt --check
working-directory: onchain/cairo
- name: Build cairo programs
run: scarb build
working-directory: onchain/cairo
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: '2.6.5'
- name: Scarb version
run: scarb --version
working-directory: onchain/cairo
- uses: actions/checkout@v4
- uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: '0.25.0'
- name: Run cairo tests
run: snforge test
working-directory: onchain/cairo