【2人目確認待ち】VK CSS Optimize の設定ファイル以外を削除 #1885
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Deprecated Test and Lint | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
env: | |
plugin_name: vk-blocks-pro | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# get the node version from the .node-version file | |
- name: Read .node-version | |
run: echo "##[set-output name=NODEVERSION;]$(cat .node-version)" | |
id: nodenv | |
# setup node based on the version from the .node-version file, fetched in the previous step | |
- name: Setup Node.js (.node-version) | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "${{ steps.nodenv.outputs.NODEVERSION }}" | |
- name: Setup PHP 7.4 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Install NPM Scripts | |
run: npm install | |
- name: Install Composer Package ( no-dev ) | |
run: composer install --no-dev | |
- name: Install @wordpress/env | |
run: npm install -g @wordpress/env | |
- name: Run @wordpress/env | |
run: npx wp-env start | |
- 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 | |
# 各ブロックのlintを実行 | |
- name: Run lint. | |
run: | | |
npm run lint | |
# 後方互換テスト実行 | |
- name: Run deprecated test. | |
run: | | |
npm run test-unit |