This repository was archived by the owner on Dec 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
54 lines (51 loc) · 1.46 KB
/
module-unit-tests.yml
File metadata and controls
54 lines (51 loc) · 1.46 KB
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
name: ⚙️ Module Unit Tests
on:
workflow_call:
env:
BASE_BRANCH: main
jobs:
module-unit-tests:
runs-on: "ubuntu-20.04"
timeout-minutes: 30
name: Module Unit Tests
steps:
- uses: actions/checkout@v3
- name: Download Editor
id: download-extension
uses: actions/download-artifact@v2
with:
name: linux-editor
path: ./
- name: Unit Tests
run: |
rm -rf project/addons
chmod +x godot.linuxbsd.editor.x86_64.luaAPI
./godot.linuxbsd.editor.x86_64.luaAPI --headless --path project/
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: module-test-results
path: project/log.txt
module-unit-tests-luajit:
runs-on: "ubuntu-20.04"
timeout-minutes: 30
name: LuaJIT Module Unit Tests
steps:
- uses: actions/checkout@v3
- name: Download Editor
id: download-extension
uses: actions/download-artifact@v2
with:
name: linux-editor
path: ./
- name: Unit Testing
run: |
rm -rf project/addons
chmod +x godot.linuxbsd.editor.x86_64.luaAPI
./godot.linuxbsd.editor.x86_64.luaAPI --headless --path project/
mv project/log.txt project/jit-log.txt
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: module-luajit-test-results
path: project/jit-log.txt