-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.05 KB
/
cairo-contracts.yaml
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
name: Cairo Contracts
on:
pull_request: {}
push:
tags:
- v[0-9]+.*
branches:
- "release/*"
- main
jobs:
test-contracts:
name: Test Cairo Contracts
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: ibc-starknet
extraPullNames: hermes-sdk,cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Check Meta Package
working-directory: ./cairo-contracts
run: |
nix shell ..#scarb -c \
scarb check
- name: Build Cairo contracts
working-directory: ./cairo-contracts
run: |
nix shell ..#scarb -c \
scarb build -p starknet_ibc_contracts
- name: Run Tests
working-directory: ./cairo-contracts
run: |
nix develop -c \
snforge test -w