Skip to content

Commit

Permalink
Add PHP Composer example (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Neuwerth authored and Josh Gross committed Nov 5, 2019
1 parent eb10706 commit ecf6eea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [Java - Maven](#java---maven)
- [Node - npm](#node---npm)
- [Node - Yarn](#node---yarn)
- [PHP - Composer](#php---composer)
- [Ruby - Gem](#ruby---gem)
- [Rust - Cargo](#rust---cargo)
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
Expand Down Expand Up @@ -89,6 +90,21 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
${{ runner.os }}-yarn-
```
## PHP - Composer
```yaml
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
```
## Ruby - Gem
```yaml
Expand Down

0 comments on commit ecf6eea

Please sign in to comment.