Skip to content

Commit e99fedd

Browse files
committed
ci: use RUNNER_TEMP
1 parent c731ada commit e99fedd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/plugin-rsc/e2e/basic.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ test.describe.only(() => {
111111
// disabled by default
112112
// if (process.env.TEST_ISOLATED !== 'true') return
113113

114-
let tmpRoot = path.join(os.tmpdir(), 'test-vite-rsc')
114+
// RUNNER_TEMP is for Github Actions
115+
// https://github.com/actions/toolkit/issues/518
116+
const tmpRoot = path.join(
117+
process.env['RUNNER_TEMP'] || os.tmpdir(),
118+
'test-vite-rsc',
119+
)
115120
test.beforeAll(async () => {
116121
console.error('[beforeAll]')
117122
await setupIsolatedFixture({ src: 'examples/basic', dest: tmpRoot })

0 commit comments

Comments
 (0)