remove cache #4
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_call: | |
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@v0.3.1 | |
env: | |
GH_TOKEN: ${{ github.token }} | |
with: | |
cache: true | |
- name: Refresh Shell | |
run: export PATH="$PATH:~/.pesde/bin" && source ~/.bashrc && pesde install | |
- name: StyLua | |
run: stylua --color always --check src | |
- name: Luau Analyze | |
run: | | |
TYPES_FILE=globalTypes.d.lua | |
curl https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/main/scripts/globalTypes.d.lua > $TYPES_FILE | |
luau_lsp analyze --settings .vscode/settings.json --definitions=$TYPES_FILE src | |
- name: Selene | |
run: selene -q src |