Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade actions/cache to v2.1.0 #15415

Merged
merged 6 commits into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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'

Expand All @@ -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'

Expand All @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/test_react_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion errors/no-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down