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
ff04bc2a
Commit
ff04bc2a
authored
Sep 10, 2024
by
JJ Kasper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ci config
parent
1755f4ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
build_and_deploy.yml
.github/workflows/build_and_deploy.yml
+1
-1
build_and_test.yml
.github/workflows/build_and_test.yml
+1
-1
pull-turbo-cache.js
scripts/pull-turbo-cache.js
+6
-0
No files found.
.github/workflows/build_and_deploy.yml
View file @
ff04bc2a
...
@@ -281,7 +281,7 @@ jobs:
...
@@ -281,7 +281,7 @@ jobs:
# issues with turbo caching
# issues with turbo caching
-
name
:
pull build cache
-
name
:
pull build cache
if
:
${{ matrix.settings.docker }}
if
:
${{ matrix.settings.docker }}
run
:
node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
run
:
n
pm i -g turbo@${{ env.TURBO_VERSION }} && n
ode ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
-
name
:
check build exists
-
name
:
check build exists
if
:
${{ matrix.settings.docker }}
if
:
${{ matrix.settings.docker }}
...
...
.github/workflows/build_and_test.yml
View file @
ff04bc2a
...
@@ -2,7 +2,7 @@ name: build-and-test
...
@@ -2,7 +2,7 @@ name: build-and-test
on
:
on
:
push
:
push
:
branches
:
[
'
canary'
]
branches
:
[
'
canary'
,
'
next-13'
]
pull_request
:
pull_request
:
types
:
[
opened
,
synchronize
]
types
:
[
opened
,
synchronize
]
...
...
scripts/pull-turbo-cache.js
View file @
ff04bc2a
...
@@ -17,7 +17,12 @@ const { spawn } = require('child_process')
...
@@ -17,7 +17,12 @@ const { spawn } = require('child_process')
}
}
)
)
child
.
stderr
.
on
(
'data'
,
(
data
)
=>
{
process
.
stderr
.
write
(
data
)
})
child
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
child
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
process
.
stdout
.
write
(
data
)
turboResult
+=
data
.
toString
()
turboResult
+=
data
.
toString
()
})
})
...
@@ -42,6 +47,7 @@ const { spawn } = require('child_process')
...
@@ -42,6 +47,7 @@ const { spawn } = require('child_process')
// pull cache if it was available
// pull cache if it was available
if
(
task
.
cache
.
local
||
task
.
cache
.
remote
)
{
if
(
task
.
cache
.
local
||
task
.
cache
.
remote
)
{
console
.
log
(
'Cache Status'
,
task
.
taskId
,
task
.
hash
,
task
.
cache
)
await
new
Promise
((
resolve
,
reject
)
=>
{
await
new
Promise
((
resolve
,
reject
)
=>
{
const
child
=
spawn
(
const
child
=
spawn
(
'/bin/bash'
,
'/bin/bash'
,
...
...
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