npm: bump the storybook group across 1 directory with 12 updates #666
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
name: Test Suite | |
on: | |
pull_request: | |
branches: [develop, trunk] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: PHP ${{ matrix.php }} WP ${{ matrix.wp }} | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
env: | |
WP_TESTS_DIR: /tmp/wordpress-tests-lib | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['7.4', '8.0', '8.1', '8.2'] | |
wp: ['latest'] | |
services: | |
database: | |
image: mysql:5.6 | |
env: | |
MYSQL_ROOT_PASSWORD: wordpress | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: ./.github/actions/node | |
- name: Setup PHP | |
uses: ./.github/actions/php | |
- name: Install WordPress and initialize database | |
run: ./tests/bin/install-wp-tests.sh wp_notify_tests root wordpress 127.0.0.1 latest | |
- name: Run PHP Unit tests | |
run: composer run test | |
- name: Starting the WordPress Environment | |
run: npx wp-env start | |
- name: Running the JavaScript tests | |
run: npm run test:js |