Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Oct 5, 2023
1 parent 8b90f17 commit eafce4f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 0 additions & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/assets
/node_modules
/tests
/vendor

# Files to ignore
/.*
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build-release-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:v2

- name: Setup node version and npm cache
uses: actions/setup-node@v3
with:
Expand All @@ -34,6 +40,9 @@ jobs:
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci --no-optional

- name: Install Composer dependencies
run: composer install --no-dev

- name: Build plugin
run: npm run build

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
- name: Display structure of downloaded files
run: ls -R
working-directory: ${{ github.event.repository.name }}
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:v2
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
Expand All @@ -43,8 +48,10 @@ jobs:
~/.cache
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
- name: Install Node dependencies
run: npm install
- name: Install Composer dependencies
run: composer install --no-dev
- name: Set the core version and plugins config
run: ./tests/bin/set-wp-config.js --core=${{ matrix.core.version }} --plugins=./${{ github.event.repository.name }},./tests/test-plugins
- name: Set up WP environment
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
run: |
npm install
npm run build
composer install --no-dev
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
Expand Down

0 comments on commit eafce4f

Please sign in to comment.