From ecf6eea7083ac3a7f0d0ea39fe7c605d3c24e982 Mon Sep 17 00:00:00 2001 From: Kai Neuwerth Date: Tue, 5 Nov 2019 22:18:49 +0100 Subject: [PATCH] Add PHP Composer example (#32) --- examples.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples.md b/examples.md index b844b41..5a3c93f 100644 --- a/examples.md +++ b/examples.md @@ -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) @@ -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