Skip to content

Commit

Permalink
GitHub Actions: Add missing tests in deploy action (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Nov 30, 2023
1 parent e8236b2 commit d318d5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/run-test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,22 @@ jobs:
- name: Running lint check
run: npm run lint

- name: Install Playwright dependencies
run: npx playwright install chromium firefox webkit --with-deps

- name: Install WordPress
run: |
WP_ENV_CORE=WordPress/${{ matrix.wp }} WP_ENV_PHP_VERSION=${{ matrix.php }} 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 e2e tests
run: npm run test:e2e

deploy:
name: Deploy to WP.org
runs-on: ubuntu-latest
needs: [ test ]
needs: [test]

steps:
- name: Checkout
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
run: npm run lint

- name: Install Playwright dependencies
run: |
npx playwright install chromium firefox webkit --with-deps
run: npx playwright install chromium firefox webkit --with-deps

- name: Install WordPress
run: |
Expand Down

0 comments on commit d318d5c

Please sign in to comment.