Skip to content

Commit ff04bc2

Browse files
committed
update ci config
1 parent 1755f4f commit ff04bc2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ jobs:
281281
# issues with turbo caching
282282
- name: pull build cache
283283
if: ${{ matrix.settings.docker }}
284-
run: node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
284+
run: npm i -g turbo@${{ env.TURBO_VERSION }} && node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
285285

286286
- name: check build exists
287287
if: ${{ matrix.settings.docker }}

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build-and-test
22

33
on:
44
push:
5-
branches: ['canary']
5+
branches: ['canary', 'next-13']
66
pull_request:
77
types: [opened, synchronize]
88

scripts/pull-turbo-cache.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ const { spawn } = require('child_process')
1717
}
1818
)
1919

20+
child.stderr.on('data', (data) => {
21+
process.stderr.write(data)
22+
})
23+
2024
child.stdout.on('data', (data) => {
25+
process.stdout.write(data)
2126
turboResult += data.toString()
2227
})
2328

@@ -42,6 +47,7 @@ const { spawn } = require('child_process')
4247

4348
// pull cache if it was available
4449
if (task.cache.local || task.cache.remote) {
50+
console.log('Cache Status', task.taskId, task.hash, task.cache)
4551
await new Promise((resolve, reject) => {
4652
const child = spawn(
4753
'/bin/bash',

0 commit comments

Comments
 (0)