Skip to content

Commit

Permalink
GHA: Create the sqllite database as user www-data, so it is writable …
Browse files Browse the repository at this point in the history
…by the webserver
  • Loading branch information
quartje committed Aug 27, 2024
1 parent ab4e298 commit a2e33cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-integration-webtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
env:
DOCKER_COMPOSE: PHP_MEMORY_LIMIT=265M docker compose -f docker-compose.yml -f docker-compose-ci.yml
DOCKER_COMPOSE_PHP: docker compose -f docker-compose.yml -f docker-compose-ci.yml exec -T spdashboard
DOCKER_RUN_SPD_AS_WWW: docker exec --user 33:33 sp-dashboard-spdashboard-1

steps:
- name: Check out the repo
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:
- name: Get the database up and running
working-directory: spdashboard
run: |
${DOCKER_COMPOSE_PHP} bin/console doctrine:schema:create
${DOCKER_RUN_SPD_AS_WWW} bin/console doctrine:schema:create
env:
APP_ENV: test

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
DOCKER_COMPOSE: docker compose -f docker-compose.yml -f docker-compose-ci.yml
DOCKER_COMPOSE_PHP: docker compose -f docker-compose.yml -f docker-compose-ci.yml exec -T spdashboard
DOCKER_COMPOSE_CYPRESS: docker compose -f docker-compose.yml -f docker-compose-ci.yml exec -T cypress
DOCKER_RUN_SPD_AS_WWW: docker exec --user 33:33 sp-dashboard-spdashboard-1

steps:
- name: Check out the repo
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
- name: Get the database up and running
working-directory: spdashboard
run: |
${DOCKER_COMPOSE_PHP} bin/console doctrine:schema:create
${DOCKER_RUN_SPD_AS_WWW} bin/console doctrine:schema:create
env:
APP_ENV: test

Expand Down

0 comments on commit a2e33cc

Please sign in to comment.