Skip to content

Commit 7cccdbd

Browse files
committed
ci: setup ci
1 parent 459f83d commit 7cccdbd

51 files changed

Lines changed: 193 additions & 116 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/mirror.luau

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
return {
2-
remote = "https://github.com/team-fireworks/wth.git",
2+
remote = "https://github.com/welcomestohell/game.git",
33
branch = "main",
44

55
directory = "mirror",
66
targets = {
77
"src/core",
88
"src/libs",
99

10+
".github/workflows/ci.yml",
11+
1012
".darklua.json",
13+
".gitattributes",
14+
".styluaignore",
1115
"pesde.toml",
1216
"rokit.toml",
1317
"selene.toml",
14-
"selene-std.yaml",
18+
"stylua.toml",
1519

20+
".lute/ci.luau",
1621
".lute/mirror.luau",
1722
".lute/watch.luau",
1823

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
analyze:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- uses: CompeyDev/setup-rokit@v0.1.2
12+
13+
- name: Setup Lute
14+
run: lute setup --with-luaurc
15+
16+
- name: Check code quality
17+
run: lute run check

.github/workflows/docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Documentation
2+
23
on:
34
push:
45
branches:
56
- master
67
- main
8+
79
permissions:
810
contents: read
911
pages: write
1012
id-token: write
13+
1114
jobs:
1215
deploy:
1316
environment:
@@ -16,14 +19,20 @@ jobs:
1619
runs-on: ubuntu-latest
1720
steps:
1821
- uses: actions/configure-pages@v5
22+
1923
- uses: actions/checkout@v5
24+
2025
- uses: actions/setup-python@v5
2126
with:
2227
python-version: 3.x
28+
2329
- run: pip install zensical
30+
2431
- run: zensical build --clean
32+
2533
- uses: actions/upload-pages-artifact@v4
2634
with:
2735
path: site
36+
2837
- uses: actions/deploy-pages@v4
29-
id: deployment
38+
id: deployment

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ site
1515
src/*/generated/**/*.luau
1616
!src/shared/generated/types/roblox.luau
1717

18-
# lute typedefs
18+
# typedefs
1919
.lute/typedefs
20+
roblox.d.luau
2021

2122
# python
2223
.venv

.lute/ci.luau

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
local fs = require("@std/fs")
2+
local net = require("@lute/net")
3+
local process = require("@lute/process")
4+
5+
process.run({ "rojo", "sourcemap", "--output=sourcemap.json" }, { stdio = "inherit" })
6+
7+
fs.writestringtofile(
8+
"roblox.d.luau",
9+
net.request("https://luau-lsp.pages.dev/globalTypes.None.d.luau", { method = "GET" }).body
10+
)
11+
12+
local analyze = process.run({
13+
"luau-lsp",
14+
"analyze",
15+
"--sourcemap=sourcemap.json",
16+
"--ignore=**/generated/**",
17+
"--ignore=**/.pesde/**",
18+
-- FIXME: Not sure why luau-lsp reports errors at this specific path
19+
"--ignore=../../../../..",
20+
"--ignore=../../../../../..",
21+
"--base-luaurc=.luaurc",
22+
"--definitions=roblox.d.luau",
23+
"--flag:LuauSolverV2=true",
24+
"src",
25+
}, { stdio = "inherit" })
26+
27+
fs.remove("roblox.d.luau")
28+
29+
local selene = process.run({ "selene", "src" }, { stdio = "inherit" })
30+
31+
local stylua = process.run({ "stylua", "--check", "src" }, { stdio = "inherit" })
32+
33+
if not (analyze.ok and selene.ok and stylua.ok) then
34+
process.exit(1)
35+
end

.styluaignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/generated/**

selene-std.yaml

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

selene.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
std = "selene-std"
1+
std = "roblox"
2+
exclude = ["**/generated/**", "src/core/shared/prvdmwrong/**"]
23

34
[lints]
45
incorrect_standard_library_use = "allow"
56
mixed_table = "allow"
67
shadowing = "allow"
8+
undefined_variable = "allow"
9+
unused_variable = "allow"

src/core/client/providers/debugger/DebuggerOverlay.luau

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
local Stats = game:GetService("Stats")
2-
local Workspace = game:GetService("Workspace")
32

43
local Iris = require("@pkgs/Iris")
54

0 commit comments

Comments
 (0)