-
Notifications
You must be signed in to change notification settings - Fork 51
62 lines (58 loc) · 1.46 KB
/
test-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: test-contracts
on:
push:
branches:
- main
pull_request: {}
jobs:
setup-environment:
runs-on: ubuntu-latest
steps:
- name: Set up environment
run: |
sudo apt-get update
sudo apt-get install -y curl
test-various:
needs: [setup-environment]
runs-on: ubuntu-latest
strategy:
matrix:
test:
[
combat,
buildings,
config,
hyperstructure,
bank,
map,
name,
resources,
trade,
realm,
guild,
transport,
models,
]
steps:
- name: Download Dojo release artifact
run: |
curl -L -o dojo-linux-x86_64.tar.gz https://github.com/dojoengine/dojo/releases/download/v0.7.1/dojo_v0.7.1_linux_amd64.tar.gz
tar -xzf dojo-linux-x86_64.tar.gz
sudo mv sozo /usr/local/bin/
- name: Checkout repository
uses: actions/checkout@v2
- name: Run Dojo Build
run: |
cd contracts && sozo build
- name: Run Dojo Test for ${{ matrix.test }}
run: |
cd contracts && sozo test -f ${{ matrix.test }}
test-scarb-fmt:
needs: [setup-environment]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.6.4"
- run: cd contracts && scarb fmt --check