Allow disabling problem matchers (#85)

This commit is contained in:
Paulo F. Oliveira
2022-01-12 11:41:23 +00:00
committed by GitHub
parent 3250a83e5a
commit e6ab31075d
4 changed files with 27 additions and 10 deletions
+9 -4
View File
@@ -66,10 +66,15 @@ async function maybeInstallElixir(elixirSpec, otpVersion) {
console.log(`##[group]Installing Elixir ${elixirVersion}`)
await installer.installElixir(elixirVersion)
core.setOutput('elixir-version', elixirVersion)
const matchersPath = path.join(__dirname, '..', '.github')
console.log(
`##[add-matcher]${path.join(matchersPath, 'elixir-matchers.json')}`,
)
const disableProblemMatchers = core.getInput('disable_problem_matchers', {
required: false,
})
if (!disableProblemMatchers) {
const matchersPath = path.join(__dirname, '..', '.github')
console.log(
`##[add-matcher]${path.join(matchersPath, 'elixir-matchers.json')}`,
)
}
core.addPath(`${process.env.RUNNER_TEMP}/.setup-beam/elixir/bin`)
console.log('##[endgroup]')