mirror of
https://github.com/actions-rs/cargo.git
synced 2024-11-15 05:56:33 +02:00
rustfmt matcher
This commit is contained in:
parent
2daac5e246
commit
40ef48bb22
3 changed files with 15 additions and 2 deletions
12
.matchers/rustfmt.json
Normal file
12
.matchers/rustfmt.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"owner": "rustfmt",
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "^Diff in (\\S+) at line (\\d+):$",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,8 @@ export async function run(actionInput: input.Input): Promise<void> {
|
||||||
|
|
||||||
async function main(): Promise<void> {
|
async function main(): Promise<void> {
|
||||||
const matchersPath = path.join(__dirname, '.matchers');
|
const matchersPath = path.join(__dirname, '.matchers');
|
||||||
console.log(`##[add-matcher]${path.join(matchersPath, 'rust.json')}`);
|
console.log(`::[add-matcher]${path.join(matchersPath, 'rust.json')}`);
|
||||||
|
console.log(`::[add-matcher]${path.join(matchersPath, 'rustfmt.json')}`);
|
||||||
|
|
||||||
const actionInput = input.get();
|
const actionInput = input.get();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue