Skip to content

Commit

Permalink
move Codeception setup into container
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldewyn committed Dec 27, 2023
1 parent b1eecf4 commit 59d3f17
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ test-js:
.PHONY: test-js

test-codeception:
@./codepoints.net/vendor/bin/codecept run
@docker compose run codeception run
.PHONY: test-codeception

vendor: $(DOCROOT)vendor/autoload.php
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
services:

web:
build:
context: .
Expand All @@ -14,6 +15,7 @@ services:
depends_on:
- db
- vite

db:
image: mariadb:10.3
volumes:
Expand All @@ -23,6 +25,7 @@ services:
- MARIADB_DATABASE=codepts
- MARIADB_USER=codepts
- MARIADB_PASSWORD=codepts

vite:
build:
context: .
Expand All @@ -31,3 +34,10 @@ services:
- 5173:5173
volumes:
- .:/app

codeception:
image: codeception/codeception
volumes:
- .:/project
profiles:
- test
2 changes: 1 addition & 1 deletion tests/acceptance.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ actor: AcceptanceTester
modules:
enabled:
- PhpBrowser:
url: https://codepoints.next
url: https://web
- \Helper\Acceptance
- Asserts

0 comments on commit 59d3f17

Please sign in to comment.