From c6132dbecaa00b3b97f8bc67744cefbe70f88219 Mon Sep 17 00:00:00 2001 From: Janez Troha Date: Sat, 2 Nov 2019 10:23:58 +0100 Subject: [PATCH] Add PHP-Composer example --- examples.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples.md b/examples.md index bd9bc51..0c84951 100644 --- a/examples.md +++ b/examples.md @@ -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- +```