Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizokou committed Oct 2, 2024
1 parent 7fa9304 commit d6bfe14
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/actions/create-test-db/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ runs:
extensions: mbstring, intl, pdo_sqlite

- name: Adjust ownership
run: sudo chown -R $USER:$GROUP ./var
run: |
sudo chown -R $USER:$GROUPS ./var
shell: bash

- name: Create test database
shell: bash
env:
DATABASE_URL: "/var/test_db.sqlite"
DATABASE_ENGINE: "pdo_sqlite"
run: |
touch ./var/test_db.sqlite
chmod 777 ./var/test_db.sqlite
php bin/console doctrine:schema:update --force --env=test
php bin/console doctrine:fixtures:load --env=test
php bin/console cache:clear --env=test
shell: bash
env:
DATABASE_URL: "/var/test_db.sqlite"
DATABASE_ENGINE: "pdo_sqlite"

0 comments on commit d6bfe14

Please sign in to comment.