-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ace8129
commit 2c7f7d2
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,12 @@ jobs: | |
run: | | ||
echo "${{ secrets.COMPOSER_ENV }}" > .env | ||
- name: Create auth.json | ||
uses: jsdaniell/[email protected] | ||
with: | ||
name: 'auth.json' | ||
json: ${{ secrets.COMPOSER_AUTH_JSON }} | ||
|
||
- name: Create local config | ||
run: | | ||
php -r "file_exists( 'local-config.php' ) || copy( 'local-config-sample.php', 'local-config.php' );" | ||
|
@@ -72,11 +78,11 @@ jobs: | |
working-directory: dev/docker | ||
|
||
- name: Start project containers | ||
run: docker-compose --project-name=${{ env.PROJECT_ID }} up -d --force-recreate | ||
run: docker compose --project-name=${{ env.PROJECT_ID }} up -d --force-recreate | ||
working-directory: dev/docker | ||
|
||
- name: Install composer dependencies | ||
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-fpm composer install --optimize-autoloader -d /application/www | ||
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-fpm composer install --optimize-autoloader -d /application/www | ||
working-directory: dev/docker | ||
|
||
- name: Set up node | ||
|
@@ -108,19 +114,19 @@ jobs: | |
chmod -R 777 ${{ github.workspace }}/cache/ | ||
- name: Run unit tests | ||
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run unit | ||
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run unit | ||
working-directory: dev/docker | ||
|
||
- name: Run integration tests | ||
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run integration | ||
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run integration | ||
working-directory: dev/docker | ||
|
||
- name: Run acceptance tests | ||
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run acceptance | ||
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run acceptance | ||
working-directory: dev/docker | ||
|
||
- name: Run webdriver tests | ||
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept -vvv --config "/application/www/dev/tests" run webdriver | ||
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept -vvv --config "/application/www/dev/tests" run webdriver | ||
working-directory: dev/docker | ||
|
||
- uses: actions/upload-artifact@v2 | ||
|