-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 861 Bytes
/
Copy pathcontract.yml
File metadata and controls
39 lines (31 loc) · 861 Bytes
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: Contracts CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install asdf
uses: asdf-vm/actions/setup@v2
- name: Install plugins
run: |
asdf plugin add scarb || true
asdf install scarb 2.10.1
asdf global scarb 2.10.1
asdf plugin add starknet-foundry || true
asdf install starknet-foundry 0.48.1
asdf global starknet-foundry 0.48.1
- name: Build contracts
working-directory: gateway
run: scarb build
- name: Run tests
working-directory: gateway
run: scarb test
- name: Check formatting
working-directory: gateway
run: scarb fmt --check