From a5fa8565e825e512ce12e5d4d43177666fbc56e2 Mon Sep 17 00:00:00 2001 From: worthant Date: Wed, 7 Aug 2024 02:09:40 +0400 Subject: [PATCH] :hammer: feat(ci): Github action formatting workflow --- .github/workflows/format.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..e596306 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,28 @@ +name: Prettier Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + prettier-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Run Prettier + run: bun x prettier --check "**/*.md"