Skip to content

Commit 3395f77

Browse files
authored
Replace forked cache by official npm (#21)
* Replace forked cache by official npm * Follow the same validation as @action/cache * Remove debug log
1 parent 04eca20 commit 3395f77

File tree

9 files changed

+2289
-1581
lines changed

9 files changed

+2289
-1581
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
build: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v2
1414
- run: |
1515
npm install
1616
npm run prepare-deps
1717
npm run all
1818
test: # make sure the action works on a clean machine without building
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v2
2222
- uses: ./
2323
with:
2424
version: v1.26

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The restrictions of annotations are the following:
5858

5959
The action was implemented with performance in mind:
6060

61-
1. We cache data by [@actions/cache](https://github.com/actions/cache) between builds: Go build cache, Go modules cache, golangci-lint analysis cache.
61+
1. We cache data by [@actions/cache](https://github.com/actions/toolkit/tree/master/packages/cache) between builds: Go build cache, Go modules cache, golangci-lint analysis cache.
6262
2. We don't use Docker because image pulling is slow.
6363
3. We do as much as we can in parallel, e.g. we download cache, go and golangci-lint binary in parallel.
6464

@@ -74,7 +74,7 @@ For example, in a repository of [golangci-lint](https://github.com/golangci/gola
7474
We use JavaScript-based action. We don't use Docker-based action because:
7575

7676
1. docker pulling is slow currently
77-
2. it's easier to use caching from [@actions/cache](https://github.com/actions/cache) until GitHub team hasn't supported reusing actions from actions
77+
2. it's easier to use caching from [@actions/cache](https://github.com/actions/toolkit/tree/master/packages/cache)
7878

7979
Inside our action we perform 3 steps:
8080

0 commit comments

Comments
 (0)