stylua.yml 530 B

123456789101112131415161718192021
  1. # Check Lua Formatting
  2. name: Check Lua Formatting
  3. on: pull_request_target
  4. jobs:
  5. stylua-check:
  6. if: github.repository == 'nvim-lua/kickstart.nvim'
  7. name: Stylua Check
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout Code
  11. uses: actions/checkout@v2
  12. with:
  13. ref: ${{ github.event.pull_request.head.sha }}
  14. - name: Stylua Check
  15. uses: JohnnyMorganz/stylua-action@v3
  16. with:
  17. token: ${{ secrets.GITHUB_TOKEN }}
  18. version: latest
  19. args: --check .