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