-
Notifications
You must be signed in to change notification settings - Fork 54
52 lines (42 loc) · 1.17 KB
/
build.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
name: Landver Contracts
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Cache Scarb dependencies
# uses: actions/cache@v3
# with:
# path: ~/.scarb
# key: ${{ runner.os }}-scarb-${{ hashFiles('**/Cargo.toml') }}
# restore-keys: |
# ${{ runner.os }}-scarb-
# - name: Install Scarb
# run: |
# curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh
# - name: Run Scarb commands
# working-directory: ./land_registry
# run: |
# scarb build
test:
runs-on: ubuntu-latest
name: tests
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Set up Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.2"
- name: Set up SNForge
uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: "0.31.0"
- name: Run tests
run: snforge test
working-directory: land_registry