Add PHP-Composer example

This commit is contained in:
Janez Troha 2019-11-02 10:23:58 +01:00 committed by GitHub
parent 87c0185d27
commit c6132dbeca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,8 @@
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
- [Ruby - Gem](#ruby---gem)
- [Go - Modules](#go---modules)
- [PHP - Composer](#php---composer)
## Node - npm
@ -108,3 +110,14 @@ uses: actions/cache@preview
restore-keys: |
${{ 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-
```