1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-11-14 01:56:17 +01:00

Add Go modules example (#18)

* Add Go modules example

* Fix TOC
This commit is contained in:
CrazyMax 2019-11-01 20:27:43 +01:00 committed by Josh Gross
parent 25e0c8faac
commit 87c0185d27

View file

@ -8,6 +8,7 @@
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage) - [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
- [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)
## Node - npm ## Node - npm
@ -96,3 +97,14 @@ uses: actions/cache@preview
restore-keys: | restore-keys: |
${{ runner.os }}-gem- ${{ runner.os }}-gem-
``` ```
## Go - Modules
```yaml
- uses: actions/cache@preview
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
```