mirror of
https://github.com/actions/cache.git
synced 2025-04-21 19:46:46 +00:00
Add PHP-Composer example
This commit is contained in:
parent
87c0185d27
commit
c6132dbeca
1 changed files with 13 additions and 0 deletions
13
examples.md
13
examples.md
|
@ -9,6 +9,8 @@
|
||||||
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
||||||
- [Ruby - Gem](#ruby---gem)
|
- [Ruby - Gem](#ruby---gem)
|
||||||
- [Go - Modules](#go---modules)
|
- [Go - Modules](#go---modules)
|
||||||
|
- [PHP - Composer](#php---composer)
|
||||||
|
|
||||||
|
|
||||||
## Node - npm
|
## Node - npm
|
||||||
|
|
||||||
|
@ -108,3 +110,14 @@ uses: actions/cache@preview
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## PHP - Composer
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: actions/cache@preview
|
||||||
|
with:
|
||||||
|
path: ~/.cache/composer
|
||||||
|
key: ${{ runner.os }}-composer-${{ hashFiles(format('{0}{1}', github.workspace, '/composer.lock')) }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-composer-
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue