Skip to content

Commit

Permalink
test: playwright CI in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVidra committed Jan 12, 2024
1 parent 14f4bc2 commit 04015f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ jobs:
node-version: 20
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Build dist files
run: pnpm run build
- name: Run Playwright tests
run: pnpm exec playwright test
run: pnpm playwright:docker
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion docker_run_playwright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Run this script to start docker container and run all playwright tests

docker run -it --rm --ipc=host \
docker run --rm --ipc=host \
--mount type=bind,src=.,dst=/app \
--mount type=volume,dst=/app/node_modules \
--mount type=volume,dst=/app/.pnpm-store \
Expand Down

0 comments on commit 04015f1

Please sign in to comment.