Skip to content

fixes the plugin update function that was removing the "enabled" flag… #115

fixes the plugin update function that was removing the "enabled" flag…

fixes the plugin update function that was removing the "enabled" flag… #115

Workflow file for this run

name: Run Tests
on: pull_request
jobs:
test:
name: PHP ${{ matrix.php }} WP ${{ matrix.wp }}
timeout-minutes: 15
runs-on: ubuntu-latest
env:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', 'latest' ]
wp: [ 'latest' ]
services:
database:
image: mysql:5.6
env:
MYSQL_ROOT_PASSWORD: wordpress
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
extensions: mysql
coverage: none
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Install WordPress and initialize database
run: chmod +x ./tests/bin/install-wp-tests.sh && ./tests/bin/install-wp-tests.sh cf7a_tests root wordpress 127.0.0.1 latest
- name: Run PHP Unit tests
run: composer run test
test-e2e:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
wp: [ '6.2', 'latest' ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer
extensions: mysql
coverage: none
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Installing NPM dependencies
run: npm install
- name: Build
run: npm run build
- name: Starting the WordPress Environment
run: npm run wp-env:start
- name: Running e2e tests
run: npm run test:e2e