Skip to content

Commit 43c7219

Browse files
committed
ci: add CI workflow to run Prettier check
1 parent 05659e8 commit 43c7219

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "CI"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main"]
7+
8+
jobs:
9+
ci:
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- name: "Check out the repo"
13+
uses: "actions/checkout@v4"
14+
15+
- name: "Install Bun"
16+
uses: "oven-sh/setup-bun@v2"
17+
18+
- name: "Install the Node.js dependencies"
19+
run: "bun install"
20+
21+
- name: "Lint the code"
22+
run: "bun run prettier:check"
23+
24+
- name: "Add summary"
25+
run: |
26+
echo "## CI result" >> $GITHUB_STEP_SUMMARY
27+
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)