cache-extensions 1.9.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cache-extensions",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "private": false,
5
5
  "description": "Cache PHP extensions in GitHub Actions",
6
6
  "main": "lib/cache.js",
@@ -38,24 +38,24 @@
38
38
  "@actions/cache": "^3.2.1",
39
39
  "@actions/core": "^1.10.0",
40
40
  "@actions/exec": "^1.1.1",
41
- "setup-php": "2.25.0"
41
+ "setup-php": "2.25.4"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/jest": "^29.5.0",
45
- "@types/node": "^18.15.11",
46
- "@typescript-eslint/eslint-plugin": "^5.58.0",
47
- "@typescript-eslint/parser": "^5.58.0",
44
+ "@types/jest": "^29.5.3",
45
+ "@types/node": "^20.4.5",
46
+ "@typescript-eslint/eslint-plugin": "^6.2.0",
47
+ "@typescript-eslint/parser": "^6.2.0",
48
48
  "@vercel/ncc": "^0.36.1",
49
- "eslint": "^8.38.0",
50
- "eslint-config-prettier": "^8.8.0",
51
- "eslint-plugin-import": "^2.27.5",
52
- "eslint-plugin-jest": "^27.2.1",
53
- "eslint-plugin-prettier": "^4.2.1",
54
- "jest": "^29.5.0",
55
- "jest-circus": "^29.5.0",
56
- "prettier": "^2.8.7",
57
- "ts-jest": "^29.1.0",
58
- "typescript": "^5.0.4"
49
+ "eslint": "^8.46.0",
50
+ "eslint-config-prettier": "^8.9.0",
51
+ "eslint-plugin-import": "^2.28.0",
52
+ "eslint-plugin-jest": "^27.2.3",
53
+ "eslint-plugin-prettier": "^5.0.0",
54
+ "jest": "^29.6.2",
55
+ "jest-circus": "^29.6.2",
56
+ "prettier": "^3.0.0",
57
+ "ts-jest": "^29.1.1",
58
+ "typescript": "^5.1.6"
59
59
  },
60
60
  "bugs": {
61
61
  "url": "https://github.com/shivammathur/cache-extensions/issues"
@@ -1,23 +1,34 @@
1
1
  amqp
2
+ apcu
3
+ ast
2
4
  couchbase
5
+ ds
3
6
  event
4
7
  expect
5
8
  gearman
6
9
  gnupg
7
10
  grpc
11
+ igbinary
8
12
  imagick
9
13
  imap
10
14
  lua
15
+ mailparse
11
16
  mcrypt
17
+ memcache
12
18
  memcached
13
19
  mongodb
20
+ msgpack
14
21
  newrelic
22
+ pcov
15
23
  pdo_sqlsrv
16
24
  pecl_http
17
25
  phalcon3
18
26
  phalcon4
19
27
  phalcon5
28
+ propro
29
+ protobuf
20
30
  psr
31
+ raphf
21
32
  rdkafka
22
33
  redis
23
34
  snmp
@@ -220,6 +220,7 @@ libgtk-3-common
220
220
  libgudev-1.0-0
221
221
  libgusb2
222
222
  libharfbuzz0b
223
+ libhashkit2
223
224
  libhavege1
224
225
  libhcrypto4-heimdal
225
226
  libheimbase1-heimdal
@@ -4,6 +4,12 @@ link_apt_fast() {
4
4
  fi
5
5
  }
6
6
 
7
+ add_sudo() {
8
+ if ! command -v sudo >/dev/null; then
9
+ apt-get install -y sudo || (apt-get update && apt-get install -y sudo)
10
+ fi
11
+ }
12
+
7
13
  fetch_package() {
8
14
  if ! [ -e /tmp/Packages ]; then
9
15
  . /etc/os-release
@@ -79,7 +85,7 @@ setup_libraries() {
79
85
  IFS=' ' read -r -a libraries_array <<<"$libraries"
80
86
  link_apt_fast
81
87
  echo "::group::Logs to set up required libraries"
82
- sudo DEBIAN_FRONTEND=noninteractive apt-fast install --no-install-recommends --no-upgrade -y "${libraries_array[@]}"
88
+ sudo DEBIAN_FRONTEND=noninteractive apt-fast install --no-install-recommends --no-upgrade -y "${libraries_array[@]}" || (sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-fast install --no-install-recommends --no-upgrade -y "${libraries_array[@]}")
83
89
  ec="$?"
84
90
  echo "::endgroup::"
85
91
  if [ "$ec" -eq "0" ]; then mark="${tick:?}"; else mark="${cross:?}"; fi
@@ -92,6 +98,7 @@ setup_dependencies() {
92
98
  extensions=$1
93
99
  extension_dir=$2
94
100
  [[ -z "${extensions// }" ]] && return
101
+ add_sudo
95
102
  IFS=' ' read -r -a extensions_array <<<"$(echo "$extensions" | sed -e "s/pdo[_-]//g" -Ee "s/^|,\s*/ php$version-/g")"
96
103
  . /etc/os-release
97
104
  sudo rm -rf "${ext_config_directory:?}" || true