Skip to content

[ Change version ] 9.100.5.0 #1578

[ Change version ] 9.100.5.0

[ Change version ] 9.100.5.0 #1578

Workflow file for this run

name: Build Check & PHPUnit
on:
push:
branches:
- master
pull_request:
branches:
- master
- develop
- ^feature/.+
jobs:
php_unit:
name: php unittest
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.4, 8.0, 8.1]
services:
mysql:
image: mysql:5.7
ports:
- 3306
env:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
steps:
- uses: actions/checkout@v2
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: install npm scripts
run: npm install
- name: install Composer Package
run: composer install
- name: Install WP-CLI
run: |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
- name: Build
run: npm run build
- name: Run Environment
run: npx wp-env start
- name: Run Environment
run: npm run phpunit