Skip to content

Commit

Permalink
Add task (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
deviantintegral authored Mar 2, 2024
2 parents ccf6b42 + 2707955 commit 5cbd79d
Show file tree
Hide file tree
Showing 4 changed files with 397 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ project_files:
- commands/web/playwright
- web-build/.gitignore
- web-build/disabled.Dockerfile.playwright
- web-build/Dockerfile.task
- web-build/install-task.sh
- web-build/install-kasmvnc.sh
- web-build/kasmvnc.yaml
- web-build/xstartup
Expand Down
5 changes: 5 additions & 0 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ get_addon() {
assert [ -f .ddev/web-build/.gitignore ]
assert [ -f .ddev/web-build/disabled.Dockerfile.playwright ]
assert [ -x .ddev/web-build/install-kasmvnc.sh ]
assert [ -f .ddev/web-build/Dockerfile.task ]
assert [ -x .ddev/web-build/install-task.sh ]
assert [ -f .ddev/web-build/kasmvnc.yaml ]
assert [ -f .ddev/web-build/xstartup ]
mkdir test
Expand All @@ -64,6 +66,9 @@ verify_run_playwright() {
cp -av "$DIR"/tests/testdata/web/* web/
assert [ -f web/index.php ]
ddev install-playwright

ddev exec -- which task

mkdir -p test/playwright/tests
cp "$DIR"/tests/testdata/phpinfo.spec.ts test/playwright/tests/phpinfo.spec.ts
health_checks
Expand Down
3 changes: 3 additions & 0 deletions web-build/Dockerfile.task
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
COPY install-task.sh /usr/local/bin
RUN chmod +x /usr/local/bin/install-task.sh
RUN install-task.sh -b /usr/local/bin -d v3.35.0
Loading

0 comments on commit 5cbd79d

Please sign in to comment.