Skip to content

Commit 3acae5c

Browse files
committed
update quality workflow for biome
1 parent dfb3bc2 commit 3acae5c

File tree

2 files changed

+8
-33
lines changed

2 files changed

+8
-33
lines changed

.github/workflows/quality.yml

+7-31
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,23 @@ name: Code Quality
22

33
on:
44
push:
5-
pull_request:
65
workflow_dispatch:
76

87
env:
98
NODE_VERSION: 18
109

1110
jobs:
12-
lint:
13-
name: Lint (ESLint)
11+
check:
1412
runs-on: ubuntu-latest
1513
steps:
1614
- name: Checkout
17-
uses: actions/checkout@v3
18-
- name: Setup Node.js
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: ${{ env.NODE_VERSION }}
22-
cache: yarn
23-
- name: Install dependencies
24-
run: yarn install --immutable
25-
- name: Prepare
26-
run: yarn prepare
27-
- name: Run ESLint
28-
run: yarn lint --fix=false
29-
format:
30-
name: Format (Prettier)
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: Checkout
34-
uses: actions/checkout@v3
35-
- name: Setup Node.js
36-
uses: actions/setup-node@v3
15+
uses: actions/checkout@v4
16+
- name: Setup Biome
17+
uses: biomejs/setup-biome@v2
3718
with:
38-
node-version: ${{ env.NODE_VERSION }}
39-
cache: yarn
40-
- name: Install dependencies
41-
run: yarn install --immutable
42-
- name: Prepare
43-
run: yarn prepare
44-
- name: Run Prettier
45-
run: yarn format --check
19+
version: latest
20+
- name: Run Biome
21+
run: biome ci .
4622
test:
4723
name: Run Unit Tests (Vitest)
4824
runs-on: ubuntu-latest

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"build": "vite build",
1010
"preview": "vite preview",
1111
"test": "vitest",
12-
"check": "biome check --no-errors-on-unmatched",
13-
"ci": "biome ci --no-errors-on-unmatched"
12+
"check": "biome check --no-errors-on-unmatched"
1413
},
1514
"dependencies": {
1615
"@fortawesome/fontawesome-svg-core": "^6.5.2",

0 commit comments

Comments
 (0)