Skip to content

Commit

Permalink
Merge pull request #295 from fuller-inc/bump-actions-cache-v3
Browse files Browse the repository at this point in the history
bump actions/cache v3
  • Loading branch information
shogo82148 authored Mar 28, 2022
2 parents 764dfbd + 626b981 commit a29d9df
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
go-version: "1.18"

- name: restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
go-version: "1.18"

- name: restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
Expand All @@ -63,19 +63,11 @@ jobs:
working-directory: provider/assume-role

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "16.x"

- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: restore cache
uses: actions/cache@v2
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
cache: "npm"
cache-dependency-path: action/package-lock.json

- name: Install dependencies
run: |
Expand Down

0 comments on commit a29d9df

Please sign in to comment.