Skip to content

Commit

Permalink
Merge branch 'main' into 217-チャンネル機能を作る
Browse files Browse the repository at this point in the history
  • Loading branch information
nori26 authored May 30, 2023
2 parents ae16008 + 8cd1926 commit de8329c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/storybook-test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# storybook test

# cache-playwright の key が `frontend/package-lock.json` になっているが
# playwright の version とかで 見た方がいいかもだが、
# 現状 プルリクごとに playwright の install が走るので とりあえずこれで 問題なしとする。
# 下記記事だと `package-lock.json` の 依存バージョン を 拾ってきているが この辺でもいいのか?
# - https://playwrightsolutions.com/playwright-github-action-to-cache-the-browser-binaries/
#
# ref
# - https://github.com/microsoft/playwright-github-action
# - `~/.cache/ms-playwright`
Expand All @@ -25,7 +19,7 @@ env:

jobs:
storybook-test:
timeout-minutes: 5
timeout-minutes: 10
runs-on: ubuntu-latest
services:
postgres:
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ DOCKER_FILES := frontend/Dockerfile backend/Dockerfile db/Dockerfile
DOCKER_BUILD_TXT := .docker_build

PHONY := all
all:
all: $(DOCKER_BUILD_TXT)
$(MAKE) local-npm-i
$(MAKE) local-prisma-generate
docker compose up

$(DOCKER_BUILD_TXT): $(DOCKER_FILES)
Expand All @@ -20,6 +21,10 @@ local-npm-i:
cd frontend && npm i
cd backend && npm i

PHONY += local-prisma-generate
local-prisma-generate:
cd backend && npx prisma generate

PHONY += down
down:
docker compose down
Expand Down

0 comments on commit de8329c

Please sign in to comment.