-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (74 loc) · 2.18 KB
/
ci.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: JON
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
env:
DOJO_VERSION: v1.0.0-alpha.16
SCARB_VERSION: v2.7.0
jobs:
check:
runs-on: ubuntu-latest
name: Format
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ env.SCARB_VERSION }}
- name: Format
run: scarb fmt --check
shell: bash
test_calculate_hand:
runs-on: ubuntu-latest
name: Test - calculate_hand
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test calculate_hand.cairo
run: sozo test -f test_calculate_hand
shell: bash
test_game_play:
runs-on: ubuntu-latest
name: Test - game_play
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test game_play.cairo
run: sozo test -f test_game_play
shell: bash
test_game_discard_effect_card:
runs-on: ubuntu-latest
name: Test - game_discard_effect_card
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test game_discard_effect_card.cairo
run: sozo test -f test_game_discard_effect_card
shell: bash
test_game_discard_special_card:
runs-on: ubuntu-latest
name: Test - game_discard_special_card
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test game_discard_special_card.cairo
run: sozo test -f test_game_discard_special_card
shell: bash
test_shop:
runs-on: ubuntu-latest
name: Test - shop
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test test_shop.cairo
run: sozo test -f test_shop
shell: bash