Compare commits

..

25 Commits

Author SHA1 Message Date
9d8c7b4041 Release v1 2019-11-04 15:13:15 -05:00
21f72b1fcc Bump package version 2019-11-04 12:04:13 -05:00
ce4a52af49 Stop warning when cache is not found (#40)
The cache not being found is a common situation so very visible warning
is a little too much.
2019-11-04 11:03:18 -05:00
57f889e86e Add cargo example for Rust project (#8)
* Add cargo example

* Add hash of Cargo.lock to keys of caches

* Move Rust example to examples.md
2019-11-04 10:15:02 -05:00
8c4c641fa0 Add Elixir Mix example (#42)
* Add Elixir Mix example

* Fix typo
2019-11-03 22:44:06 -05:00
fe98aa6782 Fix repo name in contact email (#41) 2019-11-03 09:38:45 -05:00
87c0185d27 Add Go modules example (#18)
* Add Go modules example

* Fix TOC
2019-11-01 15:27:43 -04:00
25e0c8faac Remove cache checksum debug - close #24 (#26)
* Remove cache checksum debug - close #24

*  Remove cache checksum debug on save

* Fix formatting
2019-11-01 15:24:11 -04:00
d384987622 Time based eviction interval is 1 week (#34) 2019-11-01 14:20:27 -04:00
7058277028 Fix typo in error message (#29) 2019-11-01 10:35:38 -04:00
2523667574 Add note about time-based eviction to README (#30) 2019-11-01 10:35:10 -04:00
0e86554410 Ignore all .md files 2019-11-01 10:22:36 -04:00
aae1376422 Exclude documentation from CI tests (#28) 2019-10-31 17:22:35 -04:00
fc310d4670 Fix README.md (#25)
`restore-keys` had incorrect indentation.
2019-10-31 17:19:43 -04:00
287ee0671b Add trailing dash to Maven fallback key (#19) 2019-10-31 15:08:09 -04:00
c401b561b2 Link to NuGet lock files documentation (#20) 2019-10-31 15:06:47 -04:00
526c940a94 Prevent commands from executing during tests (#21)
* Prevent commands from executing during tests

* Add newline at end of file

* Drop all commands from output
2019-10-31 15:05:59 -04:00
d676b6c354 Update README.md 2019-10-31 13:01:04 -04:00
6be35d19ef Minor typo in README (#15)
from `steps.[ID].outupts.cache-hit` to `steps.[ID].outputs.cache-hit`
2019-10-31 12:06:17 -04:00
3743276c66 Move examples to their own page (#13) 2019-10-31 11:36:50 -04:00
6e37fd16ea Add Carthage example (#10) 2019-10-31 10:52:32 -04:00
83bb08ded3 Add Cocoapods example (#5) 2019-10-31 10:47:43 -04:00
7611296bb3 Add Ruby Gem example (#4) 2019-10-31 10:45:47 -04:00
889c603691 Update workflow (#1)
* Run workflow on linux, mac, and windows

* Add status badge

* Use npm install instead

* Bump typescript version

* Use node 12.x
2019-10-31 10:37:00 -04:00
b2cac08cff Create CODE_OF_CONDUCT.md 2019-10-30 15:34:55 -04:00
4 changed files with 17 additions and 17 deletions

View File

@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v1
- name: Cache node modules
uses: actions/cache@preview
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@ -70,7 +70,7 @@ Example:
steps:
- uses: actions/checkout@v1
- uses: actions/cache@preview
- uses: actions/cache@v1
id: cache
with:
path: path/to/dependencies

View File

@ -15,7 +15,7 @@
## Node - npm
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@ -26,7 +26,7 @@
## Node - Yarn
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
@ -37,7 +37,7 @@
## C# - Nuget
Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies):
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@ -48,7 +48,7 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
## Java - Gradle
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
@ -59,7 +59,7 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
## Java - Maven
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@ -70,7 +70,7 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
## Swift, Objective-C - Carthage
```yaml
uses: actions/cache@preview
uses: actions/cache@v1
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
@ -81,7 +81,7 @@ uses: actions/cache@preview
## Swift, Objective-C - CocoaPods
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
@ -92,7 +92,7 @@ uses: actions/cache@preview
## Ruby - Gem
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
@ -103,7 +103,7 @@ uses: actions/cache@preview
## Go - Modules
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -113,7 +113,7 @@ uses: actions/cache@preview
## Elixir - Mix
```yaml
- uses: actions/cache@preview
- uses: actions/cache@v1
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
@ -125,17 +125,17 @@ uses: actions/cache@preview
```
- name: Cache cargo registry
uses: actions/cache@preview
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@preview
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@preview
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "cache",
"version": "0.0.1",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "cache",
"version": "0.0.2",
"version": "1.0.0",
"private": true,
"description": "Cache dependencies and build outputs",
"main": "dist/restore/index.js",