Skip to content

Commit 8eb8515

Browse files
committed
Fix test after upgrade of js-yaml
1 parent c3e1c27 commit 8eb8515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/metrics.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
const axios = require("axios")
1212

1313
//Github action
14-
const action = yaml.safeLoad(fs.readFileSync(path.join(__dirname, "../action.yml"), "utf8"))
14+
const action = yaml.load(fs.readFileSync(path.join(__dirname, "../action.yml"), "utf8"))
1515
action.defaults = Object.fromEntries(Object.entries(action.inputs).map(([key, {default:value}]) => [key, /^(yes|no)$/.test(value) ? value === "yes" : value]))
1616
action.input = vars => Object.fromEntries([...Object.entries(action.defaults), ...Object.entries(vars)].map(([key, value]) => [`INPUT_${key.toLocaleUpperCase()}`, value]))
1717
action.run = async (vars) => await new Promise((solve, reject) => {

0 commit comments

Comments
 (0)