Skip to content

Commit 2d8e7d6

Browse files
format too
1 parent cf9610f commit 2d8e7d6

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.github/workflows/pull_request.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ jobs:
3333
steps:
3434
- name: Checkout PR branch
3535
uses: actions/checkout@v4
36+
3637
- name: Free Disk Space
3738
uses: ./.github/actions/free-disk-space
39+
3840
- name: Install toolchain
3941
uses: moonrepo/setup-rust@v1
4042
with:
@@ -43,15 +45,23 @@ jobs:
4345
cache-base: main
4446
env:
4547
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
- name: Setup Biome
47-
uses: biomejs/setup-biome@v2
48-
with:
49-
version: "1.9.4"
48+
49+
- name: Setup Bun
50+
uses: oven-sh/setup-bun@v2
51+
52+
- name: Install JS dependencies
53+
run: bun install
54+
55+
- name: Setup Just
56+
uses: extractions/setup-just@v3
57+
58+
- name: Echo Tool Versions
59+
run: |
60+
just format-ci-versions
61+
5062
- name: Run format
5163
run: |
52-
cargo fmt --all --check
53-
taplo format --check
54-
biome format
64+
just format-ci
5565
5666
actionlint:
5767
name: Lint GitHub Actions

justfile

+10
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ format:
4040
taplo format
4141
bun biome format --write
4242

43+
format-ci:
44+
cargo fmt --all --check
45+
taplo format --check
46+
bun biome format
47+
48+
format-ci-versions:
49+
cargo --version
50+
taplo --version
51+
echo "Biome $(bun biome --version)"
52+
4353
[unix]
4454
_touch file:
4555
touch {{file}}

0 commit comments

Comments
 (0)