[Merl 1149] Add TextControl field #2171
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: 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 |