Skip to content

Commit

Permalink
chore: php and node.js versions in github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Nov 9, 2023
1 parent 210d4ac commit 090d57e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.2'
- name: composer install
run: cd ./wp/headless-wp && composer install --ignore-platform-reqs
- name: Check PHPCS standard
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ jobs:
phpunit:
name: phpunit
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.0', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
php-version: ${{ matrix.php-version }}
- name: npm install
run: npm install
- name: composer install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [16.x, 18.x, 20.x]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20

0 comments on commit 090d57e

Please sign in to comment.