Skip to content

Bump @babel/traverse from 7.22.6 to 7.23.2 #259

Bump @babel/traverse from 7.22.6 to 7.23.2

Bump @babel/traverse from 7.22.6 to 7.23.2 #259

Workflow file for this run

name: Test
on:
pull_request:
push:
branches: [ main ]
tags: ['*']
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.2']
wp-versions: ['6.1', '6.2']
name: PHP ${{ matrix.php-versions }} / WP ${{ matrix.wp-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
- name: npm install
run: npm install
- name: Build
run: |
bash ./bin/build.sh
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl #optional, setup extensions
ini-values: post_max_size=256M, short_open_tag=On #optional, setup php.ini configuration
- name: Composer install
run: composer install --optimize-autoloader --prefer-dist
- name: Install WordPress
run: |
chmod -R 767 ./ # TODO: Possibly integrate in wp-env
echo '{ "core": "https://wordpress.org/wordpress-${{ matrix.wp-versions }}.zip" }' > .wp-env.override.json
WP_ENV_CORE=WordPress/WordPress#${{ matrix.wp-versions }} WP_ENV_PHP_VERSION=${{ matrix.php-versions }} npm run wp-env start
npm run wp-env run cli wp core version
npm run wp-env run cli wp cli info
- name: Running lint check
run: npm run lint-php
- name: Running single site unit tests
run: npm run test-unit-php
if: ${{ success() || failure() }}
release:
name: Release
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3
if: contains(github.ref, 'tags/')
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
if: contains(github.ref, 'tags/')
- name: npm install
run: npm install
if: contains(github.ref, 'tags/')
- name: Build
if: contains(github.ref, 'tags/')
run: |
bash ./bin/build.sh
- name: WordPress Plugin Deploy
if: contains(github.ref, 'tags/')
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: advanced-posts-blocks