Skip to content

Commit

Permalink
ci: generate test files outside container
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks committed Dec 13, 2023
1 parent 6db87ef commit a921436
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ jobs:

- name: Setup docker
shell: bash
run: sudo ./bin/init-pipeline.sh
run: sudo bin/test-up.sh

- name: Build testing files
shell: bash
run: bin/test-build.sh
run: php vendor/bin/codecept build

- name: Run unit tests
if: matrix.test != 'acceptance'
run: bin/test-run.sh ${{ matrix.test }}

- name: Run acceptance tests
if: matrix.test == 'acceptance'
run: php ./vendor/bin/codecept run acceptance
run: php vendor/bin/codecept run acceptance

- name: Upload codeception output
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion bin/test-up.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

docker compose --file tests/docker-compose.yml --env-file tests/.env up --wait
docker compose --file tests/docker-compose.yml --env-file tests/.env exec -T wordpress chown www-data:www-data wp-content wp-content/plugins
docker compose --file tests/docker-compose.yml --env-file tests/.env exec -T wordpress chown -R www-data:www-data wp-content wp-content/plugins wp-content/plugins/indexed-search wp-content/plugins/indexed-search/tests wp-content/plugins/indexed-search/tests/_support wp-content/plugins/indexed-search/tests/_support/_generated wp-content/plugins/indexed-search/tests/_output
docker compose --file tests/docker-compose.yml --env-file tests/.env exec -T -w /var/www/html/wp-content/plugins/indexed-search wordpress bash bin/wp-install.sh

0 comments on commit a921436

Please sign in to comment.