Merge pull request #14 from shivammathur/develop

1.1.3
This commit is contained in:
Shivam Mathur
2020-08-10 12:39:37 +05:30
committed by GitHub
32 changed files with 78 additions and 33 deletions

View File

@@ -16,10 +16,11 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
- [Usage](#memo-usage)
- [Inputs](#inputs)
- [Workflow](#workflow)
- [Thread Safe Setup](#thread-safe-setup)
- [License](#scroll-license)
- [Contributions](#1-contributions)
- [Support this project](#sparkling_heart-support-this-project)
- [Dependencies](#bookmark-dependencies)
- [Support This Project](#sparkling_heart-support-this-project)
- [Dependencies](#package-dependencies)
## :tada: PHP Support
@@ -48,6 +49,8 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
## :memo: Usage
Use this GitHub Action when the extensions you are adding in [setup-php](https://github.com/shivammathur/setup-php "setup-php GitHub Action") are installed and take a long time to setup. If you are using extensions which have the result `Installed and enabled` in the logs like `pecl` extensions on `Ubuntu` or extensions which have custom support, it is recommended to use this action to cache your extensions.
### Inputs
#### `php-version` (required)
@@ -71,6 +74,7 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
See [action.yml](action.yml "Metadata for this GitHub Action") and usage below for more info.
### Workflow
> Cache extensions in a PHP workflow
```yaml
@@ -111,6 +115,19 @@ jobs:
extensions: ${{ env.extensions }}
```
### Thread Safe Setup
If you setup both `TS` and `NTS` PHP versions on `Windows` in your workflow, please add `${{ env.phpts }}` to `key` and `restore-keys` inputs in `actions/cache` step in the above workflow to avoid conflicting cache.
```yaml
- name: Cache extensions
uses: actions/cache@v2
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}-${{ env.phpts }}
restore-keys: ${{ steps.extcache.outputs.key }}-${{ env.phpts }}
```
## :scroll: License
The scripts and documentation in this project are released under the [MIT License](LICENSE "License for shivammathur/cache-extensions"). This project has multiple [dependencies](https://github.com/shivammathur/cache-extensions/network/dependencies "Dependencies for this PHP Action"). Their licenses can be found in their respective repositories.
@@ -119,15 +136,14 @@ The scripts and documentation in this project are released under the [MIT Licens
Contributions are welcome! See [Contributor's Guide](.github/CONTRIBUTING.md "shivammathur/cache-extensions contribution guide"). If you face any issues while using this or want to suggest a feature/improvement, create an issue [here](https://github.com/shivammathur/cache-extensions/issues "Issues reported").
## :sparkling_heart: Support this project
## :sparkling_heart: Support This Project
If this action helped you.
- Sponsor the project by subscribing on [Patreon](https://www.patreon.com/shivammathur "Shivam Mathur Patreon") or by contributing using [Paypal](https://www.paypal.me/shivammathur "Shivam Mathur PayPal").
- Please star the project and share it with the community.
- If you blog, write about your experience of using this action.
- If you need any help using this, please contact me using [Codementor](https://www.codementor.io/shivammathur "Shivam Mathur Codementor")u need any help using this, please contact me using [Codementor](https://www.codementor.io/shivammathur "Shivam Mathur Codementor")
## :bookmark: Dependencies
## :package: Dependencies
- [Node.js dependencies](https://github.com/shivammathur/setup-php/network/dependencies "Node.js dependencies")

52
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "cache-extensions",
"version": "1.1.2",
"version": "1.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -32,16 +32,16 @@
}
},
"@babel/core": {
"version": "7.11.0",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.11.0.tgz",
"integrity": "sha512-mkLq8nwaXmDtFmRkQ8ED/eA2CnVw4zr7dCztKalZXBvdK5EeNUAesrrwUqjQEzFgomJssayzB0aqlOsP1vGLqg==",
"version": "7.11.1",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.11.1.tgz",
"integrity": "sha512-XqF7F6FWQdKGGWAzGELL+aCO1p+lRY5Tj5/tbT3St1G8NaH70jhhDIKknIZaDans0OQBG5wRAldROLHSt44BgQ==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.10.4",
"@babel/generator": "^7.11.0",
"@babel/helper-module-transforms": "^7.11.0",
"@babel/helpers": "^7.10.4",
"@babel/parser": "^7.11.0",
"@babel/parser": "^7.11.1",
"@babel/template": "^7.10.4",
"@babel/traverse": "^7.11.0",
"@babel/types": "^7.11.0",
@@ -277,9 +277,9 @@
}
},
"@babel/parser": {
"version": "7.11.0",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.0.tgz",
"integrity": "sha512-qvRvi4oI8xii8NllyEc4MDJjuZiNaRzyb7Y7lup1NqJV8TZHF4O27CcP+72WPn/k1zkgJ6WJfnIbk4jTsVAZHw==",
"version": "7.11.3",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.3.tgz",
"integrity": "sha512-REo8xv7+sDxkKvoxEywIdsNFiZLybwdI7hcT5uEPyQrSMB4YQ973BfC9OOrD/81MaIjh6UxdulIQXkjmiH3PcA==",
"dev": true
},
"@babel/plugin-syntax-async-generators": {
@@ -1026,9 +1026,9 @@
}
},
"@types/jest": {
"version": "26.0.8",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.8.tgz",
"integrity": "sha512-eo3VX9jGASSuv680D4VQ89UmuLZneNxv2MCZjfwlInav05zXVJTzfc//lavdV0GPwSxsXJTy2jALscB7Acqg0g==",
"version": "26.0.9",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.9.tgz",
"integrity": "sha512-k4qFfJ5AUKrWok5KYXp2EPm89b0P/KZpl7Vg4XuOTVVQEhLDBDBU3iBFrjjdgd8fLw96aAtmnwhXHl63bWeBQQ==",
"dev": true,
"requires": {
"jest-diff": "^25.2.1",
@@ -1176,9 +1176,9 @@
"dev": true
},
"acorn": {
"version": "7.3.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.3.1.tgz",
"integrity": "sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA==",
"version": "7.4.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz",
"integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==",
"dev": true
},
"acorn-globals": {
@@ -3396,9 +3396,9 @@
}
},
"is-docker": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.0.tgz",
"integrity": "sha512-mB2WygGsSeoXtLKpSYzP6sa0Z9DyU9ZyKlnvuZWxCociaI0qsF8u12sR72DFTX236g1u6oWSWYFuUk09nGQEjg==",
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz",
"integrity": "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==",
"dev": true,
"optional": true
},
@@ -3457,9 +3457,9 @@
"dev": true
},
"is-regex": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz",
"integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
"integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==",
"dev": true,
"requires": {
"has-symbols": "^1.0.1"
@@ -4901,9 +4901,9 @@
"dev": true
},
"jsdom": {
"version": "16.3.0",
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.3.0.tgz",
"integrity": "sha512-zggeX5UuEknpdZzv15+MS1dPYG0J/TftiiNunOeNxSl3qr8Z6cIlQpN0IdJa44z9aFxZRIVqRncvEhQ7X5DtZg==",
"version": "16.4.0",
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.4.0.tgz",
"integrity": "sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w==",
"dev": true,
"requires": {
"abab": "^2.0.3",
@@ -5408,9 +5408,9 @@
}
},
"onetime": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.1.tgz",
"integrity": "sha512-ZpZpjcJeugQfWsfyQlshVoowIIQ1qBGSVll4rfDq6JJVO//fesjoX808hXWfBjY+ROZgpKDI5TRSRBSoJiZ8eg==",
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
"integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
"dev": true,
"requires": {
"mimic-fn": "^2.1.0"

View File

@@ -1,6 +1,6 @@
{
"name": "cache-extensions",
"version": "1.1.2",
"version": "1.1.3",
"private": false,
"description": "Cache extensions in GitHub Actions",
"main": "dist/index.js",
@@ -28,7 +28,7 @@
"@actions/exec": "^1.0.4"
},
"devDependencies": {
"@types/jest": "^26.0.8",
"@types/jest": "^26.0.9",
"@types/node": "^14.0.27",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.8.0",

View File

@@ -5,6 +5,7 @@ bcmath
bz2
Core
ctype
cubrid
curl
date
dom

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -5,6 +5,7 @@ apcu
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -4,6 +4,7 @@ apcu
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -5,6 +5,7 @@ bcmath
bz2
Core
ctype
cubrid
curl
date
dom

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -5,6 +5,7 @@ apcu
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -4,6 +4,7 @@ apcu
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -4,6 +4,7 @@ apcu
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -4,6 +4,7 @@ apcu
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -4,6 +4,7 @@ apcu
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -4,6 +4,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dom

View File

@@ -5,6 +5,7 @@ bcmath
bz2
Core
ctype
cubrid
curl
date
dom

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -7,6 +7,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -6,6 +6,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dba

View File

@@ -4,6 +4,7 @@ bz2
calendar
Core
ctype
cubrid
curl
date
dom