-
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (82 loc) · 2.43 KB
/
unit_tests.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
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
88
89
90
name: Run Unit Tests
on:
push:
branches: [ root, devel, prototype, rewrite ]
pull_request:
branches: [ root, devel, prototype ]
workflow_dispatch:
jobs:
preflight:
name: Preflight
runs-on: macos-13
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.0-beta'
- uses: extractions/setup-just@v1
- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/godotengine/godot/releases/download/4.0.3-stable/Godot_v4.0.3-stable_macos.universal.zip'
name: 'godot'
version: '4.0.3'
subPath: 'Godot.app/Contents/MacOS/'
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- run: just build-swift-godot
env:
SKIP_CLEAN: true
- uses: actions/upload-artifact@v2
with:
name: swiftgodot-package
path: SwiftGodot/
- uses: actions/upload-artifact@v2
with:
name: swiftgodot-logs
path: ~/sg-builds/**-build/*.log
test_unit:
name: Unit Tests (Libraries)
runs-on: macos-13
needs: preflight
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.0-beta'
- uses: extractions/setup-just@v1
- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/godotengine/godot/releases/download/4.0.3-stable/Godot_v4.0.3-stable_macos.universal.zip'
name: 'godot'
version: '4.0.3'
subPath: 'Godot.app/Contents/MacOS/'
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/download-artifact@v2
with:
name: swiftgodot-package
path: SwiftGodot
- run: just test-all-deps
# TODO: Re-enable once Metal is enabled.
# See: https://github.com/actions/runner-images/discussions/6138
# test_integration:
# name: Integration Tests (Godot)
# runs-on: macos-latest
# needs: preflight
#
# steps:
# - uses: maxim-lobanov/[email protected]
# with:
# xcode-version: latest-stable
# - uses: extractions/setup-just@v1
# - uses: supplypike/setup-bin@v3
# with:
# uri: 'https://github.com/godotengine/godot/releases/download/4.0.3-stable/Godot_v4.0.3-stable_macos.universal.zip'
# name: 'godot'
# version: '4.0.3'
# subPath: 'Godot.app/Contents/MacOS/'
# - uses: actions/checkout@v3
# with:
# submodules: 'recursive'
# - run: just build-all-deps
# - run: just test-game