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