Merge pull request #41 from AmberGraceSoftware/luau-lsp-latest #268
This file contains 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: Analyze Source Code | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
luau-lsp: | |
name: Luau LSP Analyze | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Setup aftman toolchain | |
uses: ok-nick/[email protected] | |
- name: Install wally dependencies | |
run: wally install | |
- name: Generate Rojo Sourcemap | |
run: rojo sourcemap --output sourcemap.json | |
- name: Download latest Roblox API types | |
run: | | |
curl \ | |
-H 'Accept: application/vnd.github.v3.raw' \ | |
-O \ | |
-L 'https://api.github.com/repos/JohnnyMorganz/luau-lsp/contents/scripts/globalTypes.d.lua' | |
- name: Verify type safety with luau-lsp | |
run: lune run workflowtools/RunLuauLSP.luau | |
selene: | |
name: Selene | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Setup aftman toolchain | |
uses: ok-nick/[email protected] | |
- name: Verify code integrity with selene | |
run: selene src |