Merge pull request #396 from RagnarokResearchLab/act-mystery-bytes #716
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: Static Analysis | |
on: | |
pull_request: | |
paths-ignore: | |
- "README.MD" | |
types: [opened, synchronize, reopened, ready_for_review] | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "README.MD" | |
jobs: | |
check-format: | |
name: Lint the codebase | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Download luacheck | |
run: curl --silent --location --output luacheck https://github.com/lunarmodules/luacheck/releases/download/v1.1.0/luacheck | |
- name: Run luacheck | |
run: chmod +x luacheck && ./luacheck . | |
- name: Install naga-cli | |
run: cargo install naga-cli | |
- name: Validate WGSL shaders | |
run: ./validate-shaders.sh |