format.yml 717 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: format
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. format:
  7. name: Format Code
  8. runs-on: "${{ matrix.os }}"
  9. strategy:
  10. matrix:
  11. os: [ubuntu-latest]
  12. php-version: ['8.0']
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v2
  16. - name: Setup PHP
  17. uses: shivammathur/setup-php@v2
  18. with:
  19. php-version: ${{ matrix.php-version }}
  20. coverage: none
  21. - name: Setup Dependencies
  22. run:
  23. composer install -o
  24. - name: Run
  25. run: |
  26. php bin/format
  27. php bin/release
  28. - name: Commit Updated
  29. uses: stefanzweifel/git-auto-commit-action@v4
  30. with:
  31. commit_message: Format code