2023-12-02 21:27:13 +00:00
|
|
|
# Check Lua Formatting
|
|
|
|
name: Check Lua Formatting
|
2024-01-03 17:30:37 +00:00
|
|
|
on: pull_request_target
|
2023-12-02 21:27:13 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
stylua-check:
|
|
|
|
name: Stylua Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@v2
|
2024-01-03 17:30:37 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2023-12-02 21:27:13 +00:00
|
|
|
- name: Stylua Check
|
|
|
|
uses: JohnnyMorganz/stylua-action@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
version: latest
|
|
|
|
args: --check .
|
|
|
|
|