Skip to content

Commit

Permalink
build: make storybook a workspace (#269)
Browse files Browse the repository at this point in the history
* build: make storybook a workspace

* build: simplify scripts for storybook

* build: clean up script names to be consistent

* ci: fix workflow script names

* chore: update minimum nvm version
  • Loading branch information
johnhooks committed Apr 14, 2023
1 parent d5680de commit ceee673
Show file tree
Hide file tree
Showing 11 changed files with 5,162 additions and 13,442 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Test Suite

on:
pull_request:
branches: [develop, trunk]
workflow_dispatch:
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.2', '7.4', '8.0']
wp: ['latest']
services:
database:
image: mysql:5.6
test:
name: PHP ${{ matrix.php }} WP ${{ matrix.wp }}
timeout-minutes: 15
runs-on: ubuntu-latest
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: npm run wp-env:start

- name: Running the tests
run: npm run test
WP_TESTS_DIR: /tmp/wordpress-tests-lib
strategy:
fail-fast: false
matrix:
php: ['7.2', '7.4', '8.0']
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

# Build Files
/build/
/docs/
68 changes: 0 additions & 68 deletions docs/contributors/develop.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/database-schema.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/internal-api.md

This file was deleted.

Empty file removed docs/rest-api.md
Empty file.
25 changes: 0 additions & 25 deletions docs/translations.md

This file was deleted.

Loading

0 comments on commit ceee673

Please sign in to comment.