Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
e4e3ad38
Unverified
Commit
e4e3ad38
authored
Jul 23, 2020
by
Jan Potoms
Committed by
GitHub
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade actions/cache to v2.1.0 (#15415)
parent
0152dac8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+16
-16
test_react_next.yml
.github/workflows/test_react_next.yml
+4
-4
no-cache.md
errors/no-cache.md
+1
-1
No files found.
.github/workflows/build_test_deploy.yml
View file @
e4e3ad38
...
@@ -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@v
1
-
uses
:
actions/cache@v
2
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@v
1
-
uses
:
actions/cache@v
2
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@v
1
-
uses
:
actions/cache@v
2
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@v
1
-
uses
:
actions/cache@v
2
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@v
1
-
uses
:
actions/cache@v
2
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@v
1
-
uses
:
actions/cache@v
2
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@v
1
-
uses
:
actions/cache@v
2
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@v
1
-
uses
:
actions/cache@v
2
id
:
restore-build
id
:
restore-build
with
:
with
:
path
:
'
.'
path
:
./*
key
:
${{ github.sha }}
key
:
${{ github.sha }}
-
run
:
./publish-release.sh
-
run
:
./publish-release.sh
.github/workflows/test_react_next.yml
View file @
e4e3ad38
...
@@ -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@v
1
# - uses: actions/cache@v
2
# 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@v
1
# - uses: actions/cache@v
2
# id: restore-build
# id: restore-build
# with:
# with:
# path:
'.'
# path:
./*
# key: ${{ github.sha }}
# key: ${{ github.sha }}
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
...
...
errors/no-cache.md
View file @
e4e3ad38
...
@@ -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@v
1
uses
:
actions/cache@v
2
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') }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment