Skip to content

Commit 8bb495c

Browse files
committed
CI restructure
1 parent be9e4f2 commit 8bb495c

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
run: rojo build default.project.json -o test.rbxl
6363

6464
- name: Run tests
65-
run: run-in-roblox --place .\\test.rbxl --script .\\test\\RunTests.server.lua > test-out.txt
65+
run: run-in-roblox --place test.rbxl --script ci.lua > test-out.txt
6666
continue-on-error: true
6767
timeout-minutes: 5
6868

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ packages/*/Packages
44
/Packages
55
/test/Packages
66
/test/modules
7+
*.rbxl
8+
*.rbxl.lock

ci.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
print("Running unit tests...")
2+
3+
local TestService = game:GetService("TestService")
4+
local TestEZ = require(TestService.Packages.TestEZ)
5+
6+
local tests = {}
7+
for _,testFolder in ipairs(TestService.modules:GetChildren()) do
8+
local name = testFolder.Name:match("(.+)_test$")
9+
local module = testFolder:FindFirstChild(name)
10+
if module then
11+
table.insert(tests, module)
12+
else
13+
print("Failed to find module within " .. testFolder.Name)
14+
end
15+
end
16+
17+
TestEZ.TestBootstrap:run(tests)

test/RunTests.server.lua

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)