From 5af0bb9adf6388769d0e2b34be8d1b4445c20d26 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Fri, 27 Oct 2023 11:44:34 +1300 Subject: [PATCH] Check PHP version in test.yml --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fdbdcdbdd..1e949c29f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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