Skip to content

Make use of deep paths more clear in app router package #2255

Make use of deep paths more clear in app router package

Make use of deep paths more clear in app router package #2255

Workflow file for this run

name: Test Plugin
on:
pull_request:
paths-ignore:
- '**/*.md'
jobs:
test_plugin:
name: WordPress ${{ matrix.wordpress }}
runs-on: ubuntu-latest
strategy:
matrix:
wordpress: ['6.2', '6.3']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create Docker Containers
working-directory: ./plugins/faustwp
run: docker-compose up -d
- name: Sleep 15 seconds
run: sleep 15
- name: Setup testing framework
working-directory: ./plugins/faustwp
run: docker exec -e COVERAGE=1 -e WP_VERSION=${{ matrix.wordpress}} $(docker-compose ps -q wordpress) init-testing-environment.sh
- name: Install and activate 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: Install Dependencies
working-directory: ./plugins/faustwp
run: docker exec -e COVERAGE=1 -e WP_VERSION=${{ matrix.wordpress}} -w /var/www/html/wp-content/plugins/faustwp $(docker-compose ps -q wordpress) composer install
- name: Run unit tests
working-directory: ./plugins/faustwp
run: docker exec -e COVERAGE=1 -e WP_VERSION=${{ matrix.wordpress}} -w /var/www/html/wp-content/plugins/faustwp $(docker-compose ps -q wordpress) composer test