Skip to content

Commit

Permalink
feat(ci): .envをe2eテストで作成するように fix #58
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Mar 14, 2024
1 parent cdb37af commit 04f806d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
POSTGRES_USER="test"
POSTGRES_PASSWORD="test"
POSTGRES_DB="akarinext-web"
POSTGRES_HOST=""
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="postgres"
POSTGRES_DB="postgres"
POSTGRES_HOST="localhost"
POSTGRES_PORT="5432"

S3_BUCKET_NAME=""
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,27 @@ jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Copy .env file
run: cp .env.example .env
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
Expand Down

0 comments on commit 04f806d

Please sign in to comment.