-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: make storybook a workspace (#269)
* 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
Showing
11 changed files
with
5,162 additions
and
13,442 deletions.
There are no files selected for viewing
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
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
|
||
# Build Files | ||
/build/ | ||
/docs/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.