From bf179012a55a444982fe9ace8851ea40366b0cf7 Mon Sep 17 00:00:00 2001 From: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Date: Tue, 15 Apr 2025 19:07:08 +0300 Subject: [PATCH] Update testing workflows --- .github/workflows/e2e-tests.yml | 7 +++++-- .github/workflows/integration-tests.yml | 6 +++--- .github/workflows/unit-tests.yml | 7 +++---- .nvmrc | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 28a17af660..3f0d4dd7a5 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -27,10 +27,13 @@ jobs: - name: Refresh Composer autoload files run: composer dump-autoload --classmap-authoritative - - name: Use desired version of NodeJS + - name: Read .nvmrc + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV + + - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4.1.0 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} cache: npm - name: Npm install diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 0c21415df7..75afd43ca0 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -29,13 +29,13 @@ jobs: # - coverage: Whether to run the tests with code coverage. # - experimental: Whether the build is "allowed to fail". matrix: - php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.3'] + php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] wp: ['latest'] coverage: [none] experimental: [false] include: - - php: '8.2' - coverage: pcov # Warning: PCOV might not work for PHP 8.4 or newer according to https://thephp.cc/articles/pcov-or-xdebug. + - php: '8.3' + coverage: pcov extensions: pcov ini-values: pcov.directory=., "pcov.exclude=\"~(vendor|tests)~\"" experimental: false diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 840881a882..21d218939f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -30,13 +30,12 @@ jobs: # - coverage: Whether to run the tests with code coverage. # - experimental: Whether the build is "allowed to fail". matrix: - php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.3'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] coverage: [none] experimental: [false] include: - # Run code coverage for only one PHP version - - php: '8.2' - coverage: pcov # Warning: PCOV might not work for PHP 8.4 or newer according to https://thephp.cc/articles/pcov-or-xdebug. + - php: '8.3' + coverage: pcov extensions: pcov ini-values: pcov.directory=., "pcov.exclude=\"~(vendor|tests)~\"" experimental: false diff --git a/.nvmrc b/.nvmrc index 35d2d08ea1..744ca17ec0 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.12 +22.14