Unverified Commit e4e3ad38 authored by Jan Potoms's avatar Jan Potoms Committed by GitHub

Upgrade actions/cache to v2.1.0 (#15415)

parent 0152dac8
......@@ -15,20 +15,20 @@ jobs:
- uses: actions/checkout@v2
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- run: yarn install --frozen-lockfile --check-files
- uses: actions/cache@v1
- uses: actions/cache@v2
id: cache-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
lint:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/cache@v1
- uses: actions/cache@v2
id: restore-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
- run: yarn lint
......@@ -39,10 +39,10 @@ jobs:
env:
NEXT_TELEMETRY_DISABLED: 1
steps:
- uses: actions/cache@v1
- uses: actions/cache@v2
id: restore-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
- run: ./check-pre-compiled.sh
......@@ -59,10 +59,10 @@ jobs:
matrix:
group: [1, 2, 3, 4, 5, 6]
steps:
- uses: actions/cache@v1
- uses: actions/cache@v2
id: restore-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
# TODO: remove after we fix watchpack watching too much
......@@ -104,10 +104,10 @@ jobs:
BROWSERNAME: 'firefox'
NEXT_TELEMETRY_DISABLED: 1
steps:
- uses: actions/cache@v1
- uses: actions/cache@v2
id: restore-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
- run: node run-tests.js test/integration/production/test/index.test.js
......@@ -123,10 +123,10 @@ jobs:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
steps:
- uses: actions/cache@v1
- uses: actions/cache@v2
id: restore-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production/test/index.test.js'
......@@ -143,10 +143,10 @@ jobs:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
steps:
- uses: actions/cache@v1
- uses: actions/cache@v2
id: restore-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production-nav/test/index.test.js'
......@@ -157,10 +157,10 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/cache@v1
- uses: actions/cache@v2
id: restore-build
with:
path: '.'
path: ./*
key: ${{ github.sha }}
- run: ./publish-release.sh
......@@ -17,10 +17,10 @@ jobs:
# - run: yarn upgrade react@next react-dom@next -W --dev
# - uses: actions/cache@v1
# - uses: actions/cache@v2
# id: cache-build
# with:
# path: '.'
# path: ./*
# key: ${{ github.sha }}
testAll:
......@@ -35,10 +35,10 @@ jobs:
matrix:
group: [1, 2, 3, 4, 5, 6]
steps:
# - uses: actions/cache@v1
# - uses: actions/cache@v2
# id: restore-build
# with:
# path: '.'
# path: ./*
# key: ${{ github.sha }}
- uses: actions/checkout@v2
......
......@@ -78,7 +78,7 @@ cache:
Using GitHub's [actions/cache](https://github.com/actions/cache), add the following step in your workflow file:
```yaml
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment