format.yaml 581 B

12345678910111213141516171819202122232425262728
  1. name: format
  2. on:
  3. push:
  4. branches: '**'
  5. pull_request:
  6. branches:
  7. - 'master'
  8. - 'rolling'
  9. jobs:
  10. stylua-check:
  11. name: "Formatting check with Stylua"
  12. runs-on: ubuntu-20.04
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Prepare dependencies
  16. run: |
  17. sudo apt update
  18. sudo apt install -y curl
  19. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  20. cargo install stylua
  21. - name: Check formatting
  22. run: |
  23. cp ./utils/.stylua.toml .
  24. stylua -c .