test
This commit is contained in:
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Apply problem matcher
|
||||
uses: ./
|
||||
with:
|
||||
build-directory: build/
|
||||
build-directory: ""
|
||||
|
||||
- name: Test problem matcher
|
||||
run: |
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -2863,7 +2863,7 @@ const matcherPath = __nccwpck_require__.ab + "gcc_matcher.json";
|
||||
|
||||
// rootdir :: string
|
||||
const rootdir = () =>
|
||||
core.getInput('build-directory', {required: false}) || "/build";
|
||||
core.getInput('build-directory', {required: false});
|
||||
|
||||
// parse :: IO() => IO() => Error | null
|
||||
const parse = (templatePath) => (matcherPath) => {
|
||||
|
||||
@@ -19,18 +19,13 @@ const templatePath = path.join(__dirname, "gcc_matcher.jsontemplate");
|
||||
const matcherPath = path.join(__dirname, "gcc_matcher.json");
|
||||
|
||||
// rootdir :: string
|
||||
const rootdir = () =>
|
||||
core.getInput('build-directory', {required: false});
|
||||
const rootdir = core.getInput('build-directory', {required: false});
|
||||
|
||||
// parse :: IO() => IO() => Error | null
|
||||
const parse = (templatePath) => (matcherPath) => {
|
||||
const r = rootdir();
|
||||
|
||||
console.log(r);
|
||||
|
||||
const content = fs.readFileSync(templatePath, 'utf-8');
|
||||
|
||||
const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir()));
|
||||
const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir));
|
||||
|
||||
fs.writeFileSync(matcherPath, parsed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user