diff --git a/__tests__/get-inputs.test.ts b/__tests__/get-inputs.test.ts index a28dbb8..7ff2590 100644 --- a/__tests__/get-inputs.test.ts +++ b/__tests__/get-inputs.test.ts @@ -9,7 +9,8 @@ beforeEach(() => { jest.resetModules(); process.stdout.write = jest.fn(); - const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); Object.keys(doc.inputs).forEach(name => { const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`; process.env[envVar] = doc.inputs[name]['default']; @@ -17,7 +18,8 @@ beforeEach(() => { }); afterEach(() => { - const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); Object.keys(doc.inputs).forEach(name => { const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`; console.debug(`delete ${envVar}\t${process.env[envVar]}`); diff --git a/package-lock.json b/package-lock.json index c0cf7bf..0f219cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1144,9 +1144,9 @@ } }, "@types/js-yaml": { - "version": "3.12.4", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.4.tgz", - "integrity": "sha512-fYMgzN+9e28R81weVN49inn/u798ruU91En1ZnGvSZzCRc5jXx9B2EDhlRaWmcO1RIxFHL8AajRXzxDuJu93+A==", + "version": "3.12.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.5.tgz", + "integrity": "sha512-JCcp6J0GV66Y4ZMDAQCXot4xprYB+Zfd3meK9+INSJeVZwJmHAW30BBEEkPzXswMXuiyReUGOP3GxrADc9wPww==", "dev": true }, "@types/json-schema": { diff --git a/package.json b/package.json index 6bb7938..6a40a6f 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ }, "devDependencies": { "@types/jest": "^26.0.13", - "@types/js-yaml": "^3.12.4", + "@types/js-yaml": "^3.12.5", "@types/node": "~12", "@typescript-eslint/eslint-plugin": "^2.34.0", "@typescript-eslint/parser": "^2.34.0",