mirror of
https://github.com/docker/metadata-action.git
synced 2026-01-10 22:43:08 +08:00
update jest config since 30.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
9c747a7ed1
commit
d636a41a2f
@ -1,6 +1,7 @@
|
|||||||
import fs from 'fs';
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||||
import os from 'os';
|
const fs = require('fs');
|
||||||
import path from 'path';
|
const os = require('os');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
|
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
|
||||||
|
|
||||||
@ -9,9 +10,7 @@ process.env = Object.assign({}, process.env, {
|
|||||||
GITHUB_REPOSITORY: 'docker/metadata-action',
|
GITHUB_REPOSITORY: 'docker/metadata-action',
|
||||||
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
||||||
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
||||||
}) as {
|
});
|
||||||
[key: string]: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
Loading…
x
Reference in New Issue
Block a user