Skip to content

Commit

Permalink
setup lighttpd
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Oct 23, 2024
1 parent 6a8c6c6 commit 1e0d90b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 29 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ jobs:

webapp-playwright-test:
needs: [cli-and-doc, webapp-ubuntu]
# if: github.ref == 'refs/heads/master'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -201,7 +202,10 @@ jobs:
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
run: |
npm ci
sudo apt-get update
sudo apt-get install lighttpd
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/playwright.yml

This file was deleted.

2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'lighttpd -f ~/inria/etc/lighttpd.conf -D',
command: 'lighttpd -f ./tests/playwright/lighttpd.conf -D',
url: 'http://127.0.0.1:12345/index.html',
// reuseExistingServer: !process.env.CI,
},
Expand Down
8 changes: 8 additions & 0 deletions tests/playwright/lighttpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include_shell "/usr/share/lighttpd/create-mime.conf.pl"

server.document-root = "./build/site"

server.port = 12345

server.username = "root"
server.groupname = "root"

0 comments on commit 1e0d90b

Please sign in to comment.