commit
64c9b14150
|
|
@ -1,3 +0,0 @@
|
||||||
/dist/**
|
|
||||||
/coverage/**
|
|
||||||
/node_modules/**
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
{
|
|
||||||
"env": {
|
|
||||||
"node": true,
|
|
||||||
"es6": true,
|
|
||||||
"jest": true
|
|
||||||
},
|
|
||||||
"extends": [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"plugin:jest/recommended",
|
|
||||||
"plugin:prettier/recommended"
|
|
||||||
],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 2023,
|
|
||||||
"sourceType": "module"
|
|
||||||
},
|
|
||||||
"plugins": [
|
|
||||||
"@typescript-eslint",
|
|
||||||
"jest",
|
|
||||||
"prettier"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,58 @@
|
||||||
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||||
|
const {defineConfig, globalIgnores} = require('eslint/config');
|
||||||
|
const {fixupConfigRules, fixupPluginRules} = require('@eslint/compat');
|
||||||
|
const typescriptEslint = require('@typescript-eslint/eslint-plugin');
|
||||||
|
const jestPlugin = require('eslint-plugin-jest');
|
||||||
|
const prettier = require('eslint-plugin-prettier');
|
||||||
|
const globals = require('globals');
|
||||||
|
const tsParser = require('@typescript-eslint/parser');
|
||||||
|
const js = require('@eslint/js');
|
||||||
|
const {FlatCompat} = require('@eslint/eslintrc');
|
||||||
|
|
||||||
|
// __dirname and __filename exist natively in CommonJS
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
recommendedConfig: js.configs.recommended,
|
||||||
|
allConfig: js.configs.all
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = defineConfig([
|
||||||
|
globalIgnores(['dist/**/*', 'coverage/**/*', 'node_modules/**/*']),
|
||||||
|
{
|
||||||
|
// prettier-ignore
|
||||||
|
extends: fixupConfigRules(
|
||||||
|
compat.extends(
|
||||||
|
'eslint:recommended',
|
||||||
|
'plugin:@typescript-eslint/eslint-recommended',
|
||||||
|
'plugin:@typescript-eslint/recommended',
|
||||||
|
'plugin:jest/recommended',
|
||||||
|
'plugin:prettier/recommended'
|
||||||
|
)
|
||||||
|
),
|
||||||
|
|
||||||
|
plugins: {
|
||||||
|
'@typescript-eslint': fixupPluginRules(typescriptEslint),
|
||||||
|
jest: fixupPluginRules(jestPlugin),
|
||||||
|
prettier: fixupPluginRules(prettier)
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.node,
|
||||||
|
...globals.jest
|
||||||
|
},
|
||||||
|
parser: tsParser,
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
sourceType: 'module'
|
||||||
|
},
|
||||||
|
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/no-require-imports': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
allowAsImport: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
|
@ -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-build-push-action-'));
|
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-build-push-action-'));
|
||||||
|
|
||||||
|
|
@ -9,9 +10,7 @@ process.env = Object.assign({}, process.env, {
|
||||||
GITHUB_REPOSITORY: 'docker/build-push-action',
|
GITHUB_REPOSITORY: 'docker/build-push-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: false,
|
clearMocks: false,
|
||||||
27
package.json
27
package.json
|
|
@ -31,18 +31,21 @@
|
||||||
"handlebars": "^4.7.7"
|
"handlebars": "^4.7.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.12.12",
|
"@eslint/compat": "^2.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
"@eslint/eslintrc": "^3.3.3",
|
||||||
"@typescript-eslint/parser": "^7.9.0",
|
"@eslint/js": "^9.39.2",
|
||||||
"@vercel/ncc": "^0.38.1",
|
"@types/node": "^20.19.27",
|
||||||
"eslint": "^8.57.0",
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"@typescript-eslint/parser": "^8.50.0",
|
||||||
"eslint-plugin-jest": "^28.5.0",
|
"@vercel/ncc": "^0.38.4",
|
||||||
"eslint-plugin-prettier": "^5.1.3",
|
"eslint": "^9.39.2",
|
||||||
"jest": "^29.7.0",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"prettier": "^3.2.5",
|
"eslint-plugin-jest": "^29.5.0",
|
||||||
"ts-jest": "^29.1.2",
|
"eslint-plugin-prettier": "^5.5.4",
|
||||||
|
"jest": "^30.2.0",
|
||||||
|
"prettier": "^3.7.4",
|
||||||
|
"ts-jest": "^29.4.6",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "^5.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,7 @@ actionsToolkit.run(
|
||||||
await core.group(`Removing temp folder ${stateHelper.tmpDir}`, async () => {
|
await core.group(`Removing temp folder ${stateHelper.tmpDir}`, async () => {
|
||||||
try {
|
try {
|
||||||
fs.rmSync(stateHelper.tmpDir, {recursive: true});
|
fs.rmSync(stateHelper.tmpDir, {recursive: true});
|
||||||
} catch (e) {
|
} catch {
|
||||||
core.warning(`Failed to remove temp folder ${stateHelper.tmpDir}`);
|
core.warning(`Failed to remove temp folder ${stateHelper.tmpDir}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ export function setSummaryInputs(inputs: Inputs) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const [skey, _] = Build.parseSecretKvp(secret, true);
|
const [skey, _] = Build.parseSecretKvp(secret, true);
|
||||||
secretKeys.push(skey);
|
secretKeys.push(skey);
|
||||||
} catch (err) {
|
} catch {
|
||||||
// ignore invalid secret
|
// ignore invalid secret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue