Skip to content

Commit

Permalink
internal: wp-now poc
Browse files Browse the repository at this point in the history
  • Loading branch information
davseve committed Jul 7, 2024
1 parent 7397741 commit 372e115
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/pwwpnow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
build-plugin:
name: Build plugin
runs-on: ubuntu-latest
# if: startsWith( github.repository, 'elementor/' )
outputs:
changelog_diff: ${{ steps.changelog_diff_files.outputs.diff }}
steps:
Expand All @@ -26,11 +25,6 @@ jobs:
id: changelog_diff_files
uses: technote-space/get-diff-action@v6
with:
# PATTERNS are:
# Everything: **/*
# Everything in directories starting with a period: .*/**/*
# Not readme.txt: !readme.txt
# Not changelog.txt: !changelog.txt
PATTERNS: |
**/*
.*/**/*
Expand All @@ -46,19 +40,15 @@ jobs:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
# if: github.event.pull_request.title == null || steps.changelog_diff_files.outputs.diff
run: npm i
- name: Build
# if: github.event.pull_request.title == null || steps.changelog_diff_files.outputs.diff
run: npx grunt build
- name: Cache node modules
# if: github.event.pull_request.title == null || steps.changelog_diff_files.outputs.diff
uses: actions/cache/save@v3
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Save build to cache
# if: github.event.pull_request.title == null || steps.changelog_diff_files.outputs.diff
uses: actions/cache/save@v3
with:
path: ./build/*
Expand All @@ -68,25 +58,10 @@ jobs:
name: Playwright test - ${{ matrix.testSuite }} on PHP 8.0
runs-on: ubuntu-latest
needs: [build-plugin]
# if: ${{ github.event.pull_request.title == null || needs.build-plugin.outputs.changelog_diff }}
strategy:
matrix:
testSuite: [
# 'ai',
# 'onBoarding',
'video',
# 'elements-regression',
# 'default',
# 'nested-tabs',
# 'reverse-columns',
# 'container',
# 'nested-accordion',
# 'styleguide_image_link',
# 'rating',
# 'pluginTester1_containers',
# 'pluginTester2_containers',
# 'pluginTester1_sections',
# 'pluginTester2_sections'
]
steps:
- name: Checkout source code
Expand All @@ -107,21 +82,11 @@ jobs:
with:
path: ./build/*
key: playwright-build-${{ github.sha }}
# - 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
# sudo mv wp-cli.phar /usr/local/bin/wp
- name: Install dependencies
run: npm i
- name: Install WordPress environment
run: |
npx wp-now start --php=8.0 --port=8888 --blueprint=./blueprint.json &
# - name: WP Cli check
# run: |
# wp --info
# wp plugin list
# wp theme activate hello-elementor
- name: Run wp-now CLI commands
run: |
wp-now cli "wp elementor experiments activate e_optimized_css_loading"
Expand Down

0 comments on commit 372e115

Please sign in to comment.