Skip to content

fix (performance): Performance Cleanup (#3320) #3736

fix (performance): Performance Cleanup (#3320)

fix (performance): Performance Cleanup (#3320) #3736

Workflow file for this run

name: Unit Tests / PHP (v8.0.0)
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
wp-versions: ['6.3.5']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2 # Checkout the Stackable Premium repo.
with:
repository: 'bfintal/Stackable-Premium'
ref: 'v3'
path: 'pro__premium_only'
token: '${{ secrets.ACCESS_KEY }}'
# Change the PHP version to v8.0.0
- name: Setup PHP v8.0.0
uses: shivammathur/setup-php@v2
with:
php-version: '8.0.0'
- name: Check PHP version
run: php -v
- name: Install dependencies
run: |
composer require phpunit/phpunit:7.5.20 --dev --ignore-platform-reqs
composer require wp-phpunit/wp-phpunit:${{ matrix.wp-versions }} --dev --ignore-platform-reqs
composer require roots/wordpress:${{ matrix.wp-versions }} --dev --ignore-platform-reqs
composer install --prefer-dist --no-progress --ignore-platform-reqs
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Build Stackable Free Plugin
run: |
npm ci
npm run build --if-present
- name: Setup MySQL
uses: mirromutth/[email protected]
with:
mysql database: 'stackable' # Optional, default value is "test". The specified database which will be create
mysql root password: 'root' # Required if "mysql user" is empty, default is empty. The root superuser password
mysql version: '5.6'
mysql user: 'root' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
mysql password: 'root' # Required if "mysql user" exists. The password for the "mysql user"
- name: Wait for MySQL
run: |
while ! mysqladmin ping --host=127.0.0.1 --password=root --silent; do
sleep 1
done
- name: Run test suite
env:
MYSQL_GITHUB_ACTION: true
MYSQL_DATABASE: stackable
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
MYSQL_PORT: 3306
run: composer run-script test