Skip to content

Commit 4518ddb

Browse files
authored
Use luau-lsp for analysis (#75)
luau-analyze was deprecated in favor of using luau-lsp analyze
1 parent ce63e3d commit 4518ddb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@ on:
1212
jobs:
1313
analyze:
1414
runs-on: ubuntu-latest
15-
1615
steps:
1716
- uses: actions/checkout@v2
1817

19-
- name: install code quality tools
20-
uses: Roblox/setup-foreman@v1
18+
- uses: Roblox/setup-foreman@v1
2119
with:
22-
version: "^1.0.1"
2320
token: ${{ secrets.GITHUB_TOKEN }}
2421

2522
- name: Download global Roblox types
2623
shell: bash
27-
run: curl -O https://raw.githubusercontent.com/JohnnyMorganz/luau-analyze-rojo/master/globalTypes.d.lua
24+
run: curl -s -O https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/master/scripts/globalTypes.d.lua
25+
26+
- name: Generate sourcemap for LSP
27+
shell: bash
28+
run: rojo sourcemap default.project.json -o sourcemap.json
2829

2930
- name: Analyze
3031
shell: bash
31-
run: luau-analyze --project=default.project.json --defs=globalTypes.d.lua --defs=testez.d.lua src/
32+
run: luau-lsp analyze --sourcemap=sourcemap.json --defs=globalTypes.d.lua --defs=testez.d.lua src/
3233

3334

3435
test:

foreman.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tools]
2-
rojo = { source = "rojo-rbx/rojo", version = "6.2.0" }
2+
rojo = { source = "rojo-rbx/rojo", version = "7.2.0" }
33
selene = { source = "Kampfkarren/selene", version = "0.18.1" }
44
stylua = { source = "JohnnyMorganz/StyLua", version = "0.13.1" }
5-
luau-analyze = { source = "JohnnyMorganz/luau-analyze-rojo", version = "0.527.0" }
5+
luau-lsp = { source = "JohnnyMorganz/luau-lsp", version = "*" }

0 commit comments

Comments
 (0)