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