-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (43 loc) · 1.01 KB
/
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
45
46
47
48
name: CI
on:
push:
pull_request:
env:
DOJO_VERSION: v1.0.0
SCARB_VERSION: 2.8.4
WORKING_DIRECTORY: ./contracts
jobs:
check:
runs-on: ubuntu-latest
name: Check format
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ env.SCARB_VERSION }}
- name: Format
working-directory: ${{ env.WORKING_DIRECTORY }}
run: scarb fmt --check
shell: bash
build:
needs: check
runs-on: ubuntu-latest
name: Build package
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Build
working-directory: ${{ env.WORKING_DIRECTORY }}
run: sozo build
shell: bash
test:
needs: [check, build]
runs-on: ubuntu-latest
name: Test package
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test
working-directory: ${{ env.WORKING_DIRECTORY }}
run: sozo test
shell: bash