mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 14:13:49 +00:00
Add eslint problem matchers (#10)
* Add eslint problem matchers * Use absolute paths
This commit is contained in:
parent
82902559de
commit
e2d9812c04
4 changed files with 72 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import * as core from '@actions/core';
|
||||
import * as installer from './installer';
|
||||
import * as path from 'path';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
|
@ -14,7 +15,14 @@ async function run() {
|
|||
}
|
||||
|
||||
// TODO: setup proxy from runner proxy config
|
||||
console.log('##[add-matcher].github/tsc.json');
|
||||
const matchersPath = path.join(__dirname, '..', '.github');
|
||||
console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`);
|
||||
console.log(
|
||||
`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`
|
||||
);
|
||||
console.log(
|
||||
`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`
|
||||
);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue