Skip to content

Commit

Permalink
ci: 개발 서버를 사용해 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Aug 23, 2023
1 parent 12fb3df commit b7d5b46
Showing 1 changed file with 32 additions and 20 deletions.
52 changes: 32 additions & 20 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,39 @@
name: Playwright Tests
name: 테스트
on:
push:
branches: [ main, master ]
branches: [develop]
pull_request:
branches: [ main, master ]
workflow_dispatch:

jobs:
test:
e2e:
environment: test
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: pnpm install

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

- name: Run Playwright tests
run: pnpm exec playwright test
env:
REACT_APP_API: ${{ secrets.REACT_APP_API }}
PORT: ${{ vars.PORT }}
REACT_APP_WISH: ${{ vars.REACT_APP_WISH }}
REACT_APP_SUGGESTION: ${{ vars.REACT_APP_SUGGESTION }}
REACT_APP_E_BOOK_LIBRARY: ${{ vars.REACT_APP_E_BOOK_LIBRARY }}

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit b7d5b46

Please sign in to comment.