Skip to content

Commit

Permalink
Change default PHP version to 8.3 for CI (#175)
Browse files Browse the repository at this point in the history
* Change default PHP version to 8.3 for CI

* Upgrade pnpm/action-setup to v4

* Use specific pnpm version
  • Loading branch information
irshadahmad21 authored Oct 15, 2024
1 parent a02d38a commit 0d5141d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
6 changes: 3 additions & 3 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ inputs:

php-version:
description: "The version of PHP to use."
default: "8"
default: "8.3"

pnpm-version:
description: "The version of pnpm to use."
default: "latest"
default: ""

lockfile:
description: "The lockfile to use."
Expand All @@ -34,7 +34,7 @@ runs:
with:
node-version: ${{ inputs.node-version }}

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
run_install: false
Expand Down
36 changes: 9 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@
},
"wireit": {
"build": {
"dependencies": [
"build:all"
]
"dependencies": ["build:all"]
},
"build:all": {
"command": "pnpm build:tools && pnpm build:projects"
Expand All @@ -86,10 +84,7 @@
"command": "pnpm -r --filter=./plugins/* exec pnpm rimraf src/assets/build/dev-server.json"
},
"lint:all": {
"dependencies": [
"lint:js",
"lint:php"
]
"dependencies": ["lint:js", "lint:php"]
},
"lint:js": {
"command": "biome lint ./"
Expand All @@ -99,24 +94,17 @@
},
"prep-release": {
"command": "pnpm run bundle:changed",
"dependencies": [
"prep-version"
]
"dependencies": ["prep-version"]
},
"prep-version": {
"command": "changeset version && pnpm -r run version",
"dependencies": [
"release-status"
]
"dependencies": ["release-status"]
},
"release-status": {
"command": "changeset status --output=changeset-status.json"
},
"setup:all": {
"dependencies": [
"setup:php",
"build:all"
]
"dependencies": ["setup:php", "build:all"]
},
"setup:php": {
"dependencies": [
Expand All @@ -133,9 +121,7 @@
},
"setup:php:projects": {
"command": "pnpm -r --filter=./plugins/* --filter=./premium/*/* run setup:php",
"dependencies": [
"setup:php:packages"
]
"dependencies": ["setup:php:packages"]
},
"test:php": {
"command": "pnpm -r run test:php"
Expand All @@ -160,12 +146,8 @@
"wpdev": {
"isRoot": true,
"operationMode": "wp-monorepo",
"projectTypes": [
"plugins"
],
"envFiles": [
".env"
]
"projectTypes": ["plugins"],
"envFiles": [".env"]
},
"packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
"packageManager": "pnpm@9.12.1"
}

0 comments on commit 0d5141d

Please sign in to comment.