Skip to content

Commit bd40724

Browse files
committed
パッケージをすべてインストール
1 parent cdd4d4f commit bd40724

5 files changed

Lines changed: 34 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
with:
2222
node-version: v20.11.0
2323

24-
- name: Install depencies
25-
run: yarn install
24+
- name: Init
25+
run: yarn install && yarn setup
2626

2727
- name: Lint
2828
run: yarn lint

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,29 @@ docker compose exec server yarn build
6767
docker compose exec infra yarn build
6868
```
6969

70-
#### 静的検証
70+
#### テスト
71+
72+
- 一括
73+
```sh
74+
docker compose exec root yarn test
75+
```
76+
77+
- クライアント
78+
```sh
79+
docker compose exec client yarn test
80+
```
81+
82+
- サーバ
83+
```sh
84+
docker compose exec server yarn test
85+
```
86+
87+
- インフラ
88+
```sh
89+
docker compose exec infra yarn test
90+
```
91+
92+
#### リント
7193

7294
- リントチェック
7395

client/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vue-tsc -b && vite build",
9-
"preview": "vite preview"
9+
"preview": "vite preview",
10+
"test": "echo 'Todo:test'"
1011
},
1112
"dependencies": {
1213
"vue": "^3.5.17"

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"build:client": "yarn --cwd client 'build'",
1414
"build:server": "yarn --cwd server 'build'",
1515
"build:infra": "yarn --cwd infra 'build'",
16+
"test": "run-s test:*",
17+
"test:client": "yarn --cwd client 'test'",
18+
"test:server": "yarn --cwd server 'test'",
19+
"test:infra": "yarn --cwd infra 'test'",
1620
"lint": "eslint \"**/*\"",
1721
"lint:fix": "eslint --fix \"**/*\""
1822
},

server/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"scripts": {
55
"dev": "tsx watch src/index.ts",
66
"build": "tsc",
7-
"start": "node dist/index.js"
7+
"start": "node dist/index.js",
8+
"test": "echo 'Todo:test'"
89
},
910
"dependencies": {
1011
"@hono/node-server": "^1.14.4",
@@ -15,4 +16,4 @@
1516
"tsx": "^4.7.1",
1617
"typescript": "^5.8.3"
1718
}
18-
}
19+
}

0 commit comments

Comments
 (0)