mirror of
https://github.com/Imtjl/2nd-year-guide.git
synced 2026-09-12 19:50:58 +05:00
🔨 feat(ci): Github action formatting workflow
This commit is contained in:
parent
e06f52955f
commit
a5fa8565e8
28
.github/workflows/format.yml
vendored
Normal file
28
.github/workflows/format.yml
vendored
Normal file
@ -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"
|
||||||
Loading…
Reference in New Issue
Block a user