4
0
mirror of https://github.com/docker/setup-qemu-action.git synced 2026-03-04 14:32:04 +08:00
Files
setup-qemu-action/__tests__/setup.unit.ts
2026-02-28 02:05:29 +01:00

13 lines
393 B
TypeScript

import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-setup-qemu-action-'));
process.env = Object.assign({}, process.env, {
TEMP: tmpDir,
GITHUB_REPOSITORY: 'docker/setup-qemu-action',
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
});