Skip to content

Commit 4fd9ed3

Browse files
authored
Try run-in-roblox (#120)
* Try run-in-roblox * Download submodules * Update submodules and references * Install Roblox studio * Update * Change test runner directory
1 parent 8f8b63c commit 4fd9ed3

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

.github/workflows/test.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
generate:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Download submodules
15+
run: |
16+
git submodule init
17+
git submodule update --remote
18+
- uses: Roblox/setup-foreman@v1
19+
with:
20+
version: "^1.0.0"
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
- uses: OrbitalOwen/[email protected]
23+
with:
24+
cookie: ${{ secrets.ROBLOSECURITY }}
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Build tests
27+
run: rojo build tests.project.json --output tests.rbxlx
28+
- name: Run tests
29+
run: run-in-roblox --place tests.rbxlx --script Tests/tests/TestRunner.server.lua

Tests/testez

Submodule testez updated 103 files

Tests/tests/TestRunner.server.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ local ServerScriptService = game:GetService("ServerScriptService")
33
local TestEZ = require(ServerScriptService.Tests.TestEZ)
44

55
TestEZ.TestBootstrap:run(
6-
{ script.Parent },
6+
{ ServerScriptService.Tests },
77
TestEZ.Reporters.TextReports
88
)

foreman.toml

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[tools]
2+
rojo = { source = "rojo-rbx/rojo", version = "6.0.0-rc.4" }
3+
run-in-roblox = { source = "rojo-rbx/run-in-roblox", version = "0.3.0" }
24
selene = { source = "Kampfkarren/selene", version = "*" }

tests.project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"$path": "Tests/MockDataStoreService/lib"
2323
},
2424
"TestEZ": {
25-
"$path": "Tests/testez/lib"
25+
"$path": "Tests/testez/src"
2626
},
2727
"Tests": {
2828
"$path": "Tests/tests"

0 commit comments

Comments
 (0)