Skip to content

Commit

Permalink
Check PHP version in test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Oct 26, 2023
1 parent 3bdb6a6 commit 5af0bb9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- name: Setup PHP
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4

- name: Check PHP Version
run: php -v

- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
with:
Expand All @@ -38,6 +41,9 @@ jobs:
yarn build
yarn wp-env start
- name: Check PHP Version again
run: php -v

- name: Run PHP unit tests
run: |
yarn test:php

0 comments on commit 5af0bb9

Please sign in to comment.