Skip to content

Commit

Permalink
fix: wf
Browse files Browse the repository at this point in the history
  • Loading branch information
drill-lancer committed Dec 10, 2024
1 parent c0cc7c4 commit 16cfb82
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 47 deletions.
52 changes: 5 additions & 47 deletions .github/workflows/build_check.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,11 @@
name: Build Check
name: PHP Unit Test

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: 20.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
Expand Down Expand Up @@ -84,6 +38,10 @@ jobs:
php-version: ${{ matrix.php }}
- name: install npm scripts
run: npm install
- name: install Composer dependencies
run: composer install
- name: Build
run: npm run build
- name: wp-env start
run: ./node_modules/@wordpress/env/bin/wp-env start
- name: install composer
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Install NPM Scripts
run: npm install
- name: install Composer dependencies
run: composer install
- name: Build
run: npm run build
- run: bash bin/dist
- run: echo "DIST_VERSION=$(echo ${{ github.ref }} | sed -E 's/^refs\/tags\/v?(.*)$/\1/')" >> $GITHUB_ENV
- run: test -e dist/${{ env.dist_name }}.zip
Expand Down

0 comments on commit 16cfb82

Please sign in to comment.