forked from BibliothecaDAO/loot-survivor
-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (33 loc) · 1 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
name: Build and Test Contracts
on:
push:
branches:
- main
pull_request:
env:
SCARB_VERSION: 2.7.1
FOUNDRY_VERSION: 0.27.0
MAX_N_STEPS: 4294967295
jobs:
build:
name: Build and Test Contracts
runs-on: ubuntu-latest
strategy:
matrix:
contract: [
adventurer,
game,
loot,
market,
obstacles,
combat,
beasts
]
steps:
- uses: actions/checkout@v3
- name: Install Scarb
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v ${{ env.SCARB_VERSION }}
- name: Install Foundry
run: curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | bash && source ~/.bashrc && snfoundryup -v ${{ env.FOUNDRY_VERSION }}
- name: Build and Test ${{ matrix.contract }}
run: cd contracts/${{ matrix.contract }} && snforge test --max-n-steps ${{ env.MAX_N_STEPS }}