Skip to content

Commit

Permalink
Use analyze.sh in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Dec 23, 2023
1 parent 5d2b81e commit 47af81c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,10 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: wally install

- name: Download global Roblox types
shell: bash
run: curl -s -O https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/master/scripts/globalTypes.d.lua

- name: Generate sourcemap for LSP
shell: bash
run: rojo sourcemap tests.project.json -o sourcemap.json
run: ./bin/wally-install.sh

- name: Analyze
shell: bash
run: luau-lsp analyze --sourcemap=sourcemap.json --defs=globalTypes.d.lua --defs=testez.d.lua --ignore=**/_Index/** src/
- name: Run Luau analysis
run: ./bin/analyze.sh

scripts:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions bin/analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ curl -s -O https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/master/scrip
rojo sourcemap tests.project.json -o sourcemap.json

luau-lsp analyze --sourcemap=sourcemap.json --defs=globalTypes.d.lua --defs=testez.d.lua --ignore=**/_Index/** src/
exit_code=$?

rm globalTypes.d.lua

exit $exit_code

0 comments on commit 47af81c

Please sign in to comment.