Font Awesome 6.4.2 対応 ( Supports the icon font of X ) #1668
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: Build Check | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
buid_check: | |
name: build test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- run: cp _g2/assets/js/lightning.min.js lightning.min.js.before | |
- run: cp _g2/assets/css/common.css common.css.before | |
- run: cp _g2/assets/css/common_editor.css common_editor.css.before | |
- run: cp _g2/assets/css/wp-embed.css wp-embed.css.before | |
- run: cp _g2/library/bootstrap-4/css/bootstrap.css bootstrap4.css.before | |
- run: cp _g2/library/bootstrap-3/css/bootstrap.css bootstrap3.css.before | |
- run: cp _g2/design-skin/origin/css/style.css origin.style.css.before | |
- run: cp _g2/design-skin/origin/css/editor.css origin.editor.css.before | |
- run: cp _g2/design-skin/origin2/css/style.css origin2.style.css.before | |
- run: cp _g2/design-skin/origin2/css/editor.css origin2.editor.css.before | |
- run: cp _g2/plugin-support/woocommerce/css/woo.css woo.css.before | |
- run: npm install -D | |
# js forget compile check | |
- name: build Javascript | |
run: npm run build:script | |
- run: diff _g2/assets/js/lightning.min.js lightning.min.js.before | |
# common css forget compile check | |
- name: build Common StyleSheet | |
run: npx gulp sass | |
- run: diff _g2/assets/css/common.css common.css.before | |
- run: diff _g2/assets/css/common_editor.css common_editor.css.before | |
- run: diff _g2/assets/css/wp-embed.css wp-embed.css.before | |
- run: diff _g2/library/bootstrap-4/css/bootstrap.css bootstrap4.css.before | |
- run: diff _g2/library/bootstrap-3/css/bootstrap.css bootstrap3.css.before | |
- run: diff _g2/design-skin/origin/css/style.css origin.style.css.before | |
- run: diff _g2/design-skin/origin/css/editor.css origin.editor.css.before | |
- run: diff _g2/design-skin/origin2/css/style.css origin2.style.css.before | |
- run: diff _g2/design-skin/origin2/css/editor.css origin2.editor.css.before | |
- run: diff _g2/plugin-support/woocommerce/css/woo.css woo.css.before | |
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 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- 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: install npm scripts | |
run: npm install | |
- name: wp-env start | |
run: ./node_modules/@wordpress/env/bin/wp-env start | |
- name: install composer | |
run: ./node_modules/@wordpress/env/bin/wp-env run composer 'composer install' | |
- name: Change file permission | |
run: | | |
umask | |
sudo chmod -R 777 ./ | |
sudo chmod -R 777 ~/wp-env | |
- name: php unit test root | |
run: ./node_modules/@wordpress/env/bin/wp-env run phpunit 'phpunit -c /var/www/html/wp-content/themes/lightning/phpunit.root.xml --verbose' | |
- name: php unit test G2 | |
run: ./node_modules/@wordpress/env/bin/wp-env run phpunit 'phpunit -c /var/www/html/wp-content/themes/lightning/phpunit.g2.xml --verbose' | |
- name: php unit test G3 | |
run: ./node_modules/@wordpress/env/bin/wp-env run phpunit 'phpunit -c /var/www/html/wp-content/themes/lightning/phpunit.g3.xml --verbose' | |
- name: Install dependencies //////////////////////// | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npx playwright test --trace on --project=chromium | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |