mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-10 14:11:11 +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
|
@ -17,6 +17,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const installer = __importStar(require("./installer"));
|
||||
const path = __importStar(require("path"));
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
|
@ -30,7 +31,10 @@ function run() {
|
|||
yield installer.getNode(version);
|
||||
}
|
||||
// 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