fix: update to work with luau-lsp 1.56+ #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| code-style: | |
| name: Verify code style and quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Pesde | |
| uses: lumin-org/setup-pesde@b690699ace34169731b6b2a1c93b2008472038a7 | |
| with: | |
| cache: true | |
| - name: Install dependencies | |
| run: | | |
| pesde install | |
| - name: StyLua | |
| run: | | |
| ~/.pesde/bin/stylua -V | |
| stylua=$(find ~/.pesde/bin/.tool_storage -type f -name 'stylua*' -printf '%T@ %p\n' | sort -nr | head -n1 | cut -d' ' -f2-) | |
| "$stylua" -f .meta/.stylua.toml --color always --check src | |
| - name: Luau Analyze | |
| run: | | |
| curl https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/main/scripts/globalTypes.d.lua -o ./roblox.d.luau | |
| ~/.pesde/bin/luau_lsp -v | |
| luau_lsp=$(find ~/.pesde/bin/.tool_storage -type f -name 'luau-lsp*' -printf '%T@ %p\n' | sort -nr | head -n1 | cut -d' ' -f2-) | |
| "$luau_lsp" analyze --settings .vscode/settings.json --definitions:@roblox=./roblox.d.luau --ignore /roblox_packages/** src | |
| - name: Selene | |
| run: | | |
| ~/.pesde/bin/selene -V | |
| selene=$(find ~/.pesde/bin/.tool_storage -type f -name 'selene*' -printf '%T@ %p\n' | sort -nr | head -n1 | cut -d' ' -f2-) | |
| "$selene" --config .meta/selene.toml -q src |