-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (42 loc) · 1.17 KB
/
test-contract.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
name: test-contracts
env:
SCARB_VERSION: 2.8.4
DOJO_VERSION: 1.0.9
on:
pull_request:
paths-ignore:
- "client/**"
- "**/manifest.json"
- ".github/**"
- "pnpm-lock.yaml"
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
setup-environment:
runs-on: ubuntu-latest
steps:
- name: Set up environment
run: |
sudo apt-get update
sudo apt-get install -y curl
sozo-test:
needs: [setup-environment]
runs-on: ubuntu-latest
steps:
- name: Download Dojo release artifact
run: |
curl -L -o dojo-linux-x86_64.tar.gz https://github.com/dojoengine/dojo/releases/download/v${{ env.DOJO_VERSION }}/dojo_v${{ env.DOJO_VERSION }}_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 Tests
run: |
cd contracts && sozo test --print-resource-usage