Skip to content

Commit a169805

Browse files
authored
[CHORE] Use biome ci and setup-biome in frontend lint workflow (#1830)
* [CHORE] Use biome ci and setup-biome in frontend lint workflow Switch from `biome check` to `biome ci` for better CI integration with native GitHub annotations. Replace setup-bun + bun install with biomejs/setup-biome@v2 for faster runs since only the Biome binary is needed. * [CHORE] Pin Biome version to 2.3.13 in CI workflow
1 parent 3462002 commit a169805

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/ci-frontend-lint.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,25 @@ on:
1313
- "frontend/**"
1414

1515
jobs:
16-
biome-check:
16+
biome-ci:
1717
if: github.event.pull_request.draft == false
1818
runs-on: ubuntu-latest
1919

2020
steps:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24-
- name: Setup Bun
25-
uses: oven-sh/setup-bun@v2
24+
- name: Setup Biome
25+
uses: biomejs/setup-biome@v2
2626
with:
27-
bun-version: "1.3.8"
27+
version: "2.3.13"
2828

29-
- name: Install dependencies
30-
working-directory: frontend
31-
run: bun install --frozen-lockfile
32-
33-
- name: Run Biome check
29+
- name: Run Biome CI
3430
id: biome
3531
working-directory: frontend
3632
continue-on-error: true
3733
run: |
38-
bun x @biomejs/biome check src/ --reporter=github 2>&1 | tee biome-output.txt
34+
biome ci src/ 2>&1 | tee biome-output.txt
3935
echo "exit_code=${PIPESTATUS[0]}" >> $GITHUB_OUTPUT
4036
4137
- name: Generate lint report
@@ -67,9 +63,7 @@ jobs:
6763

6864
- name: Output lint report to job summary
6965
if: always() && hashFiles('frontend/biome-report.md') != ''
70-
shell: bash
71-
run: |
72-
cat frontend/biome-report.md >> $GITHUB_STEP_SUMMARY
66+
run: cat frontend/biome-report.md >> $GITHUB_STEP_SUMMARY
7367

7468
- name: Fail if Biome found issues
7569
if: steps.biome.outputs.exit_code != '0'

0 commit comments

Comments
 (0)