MERL-1004: fixed missing edit button in the Faust toolbar when previewing a post #2132
Workflow file for this run
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
name: E2E Test Plugin | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
jobs: | |
e2e_test_plugin: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install NPM Deps | |
run: | | |
npm ci | |
npm run build | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
coverage: pcov | |
ini-values: pcov.directory=includes | |
- name: Setup Frontend | |
run: | | |
NEXT_PUBLIC_WORDPRESS_URL=http://localhost:8080 FAUSTWP_SECRET_KEY=00000000-0000-4000-8000-000000000001 npm run dev:next:getting-started & | |
- name: Composer install | |
working-directory: plugins/faustwp | |
run: composer install | |
- name: Setup Containers | |
working-directory: plugins/faustwp | |
run: docker-compose up -d | |
- name: Sleep 15 seconds | |
run: sleep 15 | |
- name: Maybe upgrade WP DB | |
working-directory: plugins/faustwp | |
run: docker exec --workdir=/var/www/html/wp-content/plugins/faustwp $(docker-compose ps -q wordpress) wp core update-db --allow-root | |
- name: Install WP GraphQL | |
working-directory: plugins/faustwp | |
run: | | |
docker exec --workdir=/var/www/html/wp-content/plugins/faustwp $(docker-compose ps -q wordpress) wp plugin install wp-graphql --activate --allow-root | |
- name: Setup testing data | |
working-directory: plugins/faustwp | |
run: | | |
docker exec --workdir=/var/www/html/wp-content/plugins/faustwp $(docker-compose ps -q wordpress) wp db export tests/_data/dump.sql --allow-root | |
- name: Copy env file | |
working-directory: plugins/faustwp | |
run: cp .env.testing.example .env.testing | |
- name: Run Acceptance tests | |
working-directory: plugins/faustwp | |
run: vendor/bin/codecept run acceptance | |
- name: Run API tests | |
working-directory: plugins/faustwp | |
run: vendor/bin/codecept run api | |
- name: Upload Test Output | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: failed-test-output | |
path: ${{ github.workspace }}/plugins/faustwp/tests/_output |