summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/format.yml
blob: 7a42fe823b2263b8e05dd6b16c3e3dc4e8f410c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Format

on:
  push:
  pull_request:
  workflow_dispatch:
jobs:
  format:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

      - name: Setup Bun
        uses: oven-sh/setup-bun@v1
        with:
          bun-version: 1.2.21

      - name: run
        run: |
          bun install
          ./script/format.ts
        env:
          CI: true