Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit 57e1129

Browse files
authored
Merge pull request #37 from u-hossy/feature/add-biome-and-github-actions
BiomeとGitHub Actions、その他の追加
2 parents d324ad7 + 37b83f8 commit 57e1129

File tree

10 files changed

+468
-2332
lines changed

10 files changed

+468
-2332
lines changed

.github/workflows/auto-merge.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto merge
2+
on: pull_request
3+
jobs:
4+
merge:
5+
if: ${{ github.actor == 'dependabot[bot]' }}
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
- run: gh pr merge "${GITHUB_HEAD_REF}" --merge --auto

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 1
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
steps:
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
15+
- name: pnpm setup
16+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
17+
with:
18+
package_json_file: frontend/package.json
19+
20+
- name: Install dependencies
21+
run: pnpm install
22+
working-directory: frontend
23+
24+
- name: Format and Lint
25+
run: pnpm run check
26+
working-directory: frontend
27+
28+
- name: Test
29+
run: pnpm run test
30+
working-directory: frontend
31+
32+
- name: Build
33+
run: pnpm run build
34+
working-directory: frontend

frontend/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
# To use pnpm
27+
package-lock.json
28+
yarn.lock

frontend/biome.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.0/schema.json",
33
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
44
"files": { "ignoreUnknown": false },
55
"formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2 },
66
"linter": {
77
"enabled": true,
8-
"rules": { "recommended": false },
8+
"rules": {
9+
"recommended": false,
10+
"nursery": {
11+
"useSortedClasses": "error"
12+
}
13+
},
914
"includes": ["**", "!dist"]
1015
},
16+
"css": {
17+
"parser": {
18+
"tailwindDirectives": true
19+
}
20+
},
1121
"javascript": { "formatter": { "quoteStyle": "double" } },
1222
"overrides": [
1323
{

0 commit comments

Comments
 (0)