format.yml 534 B

1234567891011121314151617181920212223242526272829
  1. name: Format
  2. on:
  3. push:
  4. pull_request:
  5. workflow_dispatch:
  6. jobs:
  7. format:
  8. runs-on: ubuntu-latest
  9. permissions:
  10. contents: write
  11. steps:
  12. - name: Checkout repository
  13. uses: actions/checkout@v4
  14. with:
  15. token: ${{ secrets.GITHUB_TOKEN }}
  16. - name: Setup Bun
  17. uses: oven-sh/setup-bun@v1
  18. with:
  19. bun-version: 1.2.19
  20. - name: Install dependencies
  21. run: bun install
  22. - name: Run format
  23. run: bun run format
  24. env:
  25. CI: true