-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1012 Bytes
/
code-quality.yml
File metadata and controls
37 lines (34 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Check code quality on pull requests
name: Code Quality
on:
pull_request:
branches:
- main
jobs:
biome:
name: runner / Biome
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci .
# TODO: Uncomment this when `reviewdog-action-biome` supports Biome 2.0
# - name: Reviewdog (Checks)
# uses: mongolyy/reviewdog-action-biome@v1
# with:
# github_token: ${{ secrets.github_token }}
# reporter: github-pr-check
# level: error
# biome_flags: "--diagnostic-level=error"
# - name: Reviewdog (PR)
# uses: mongolyy/reviewdog-action-biome@v1
# with:
# github_token: ${{ secrets.github_token }}
# reporter: github-pr-review
# level: error
# biome_flags: "--diagnostic-level=error"