Skip to content

Commit cb94ede

Browse files
committed
Switch to checking sort
1 parent ae8e591 commit cb94ede

File tree

11 files changed

+45
-787
lines changed

11 files changed

+45
-787
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@master
14+
- uses: ./
15+
- name: Check sort with disorder
16+
run: sort -c test/test.txt || true
17+

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# xmllint-problem-matcher
1+
# sort-problem-matcher
22

3-
This problem matcher lets you show errors from `xmllint` as annotation in GitHub Actions.
3+
This problem matcher lets you show errors from GNU `sort` as annotation in GitHub Actions.
4+
5+
Based on korelstar's xmllint-problem-matcher.
46

57
## Usage
68

7-
Add the step to your workflow, before `xmllint` is called.
9+
Add the step to your workflow, before `sort -c` is called.
810

911
```yaml
10-
- uses: korelstar/xmllint-problem-matcher@v1
12+
- uses: codespell-project/sort-problem-matcher@v1
1113
```

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: 'xmllint problem matcher'
2-
author: 'Kristof Hamann'
3-
description: 'Shows xmllint errors as annotation (with file and code line) in GitHub Actions'
1+
name: 'sort problem matcher'
2+
author: 'Peter Newman'
3+
description: 'Shows GNU sort errors as annotation (with file and code line) in GitHub Actions'
44
runs:
55
using: 'node12'
66
main: 'index.js'

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
console.log(`::add-matcher::${__dirname}/xmllint-matcher.json`);
2+
console.log(`::add-matcher::${__dirname}/sort-matcher.json`);

sort-matcher.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "sort-matcher",
5+
"pattern": [
6+
{
7+
"regexp": "^sort: (.+):(\\d+):\\s+(.+)$",
8+
"file": 1,
9+
"line": 2,
10+
"message": 3
11+
}
12+
]
13+
}
14+
]
15+
}

test/error.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

test/info.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)