Skip to content

Commit

Permalink
Update to cache@v2 (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Sep 3, 2021
1 parent 63ea2ca commit 43d56d5
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/cache@v1
- uses: actions/setup-node@v1
with:
path: ~/.npm
node-version: 10.x

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

- name: Setup
run: |
npm ci
Expand All @@ -33,22 +37,22 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/cache@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.selenium-assistant
key: ${{ runner.os }}

- uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Setup
run: |
sudo safaridriver --enable
Expand Down

0 comments on commit 43d56d5

Please sign in to comment.