-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
801 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Setup xmllint | ||
run: sudo apt-get install --no-install-recommends -y libxml2-utils | ||
- name: add problem matcher for xmllint | ||
run: ./index.js | ||
- name: lint XML file with syntax error | ||
run: xmllint test/error.xml --schema test/info.xsd --noout || true | ||
- name: lint XML file with schema error | ||
run: xmllint test/info.xml --schema test/info.xsd --noout || true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# xmllint-problem-matcher | ||
|
||
This problem matcher lets you show errors from `xmllint` as annotation in GitHub Actions. | ||
|
||
## Usage | ||
|
||
Add the step to your workflow, before PHPUnit is called. | ||
|
||
```yaml | ||
- uses: korelstar/xmllint-problem-matcher@v1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: 'xmllint problem matcher' | ||
author: 'Kristof Hamann' | ||
description: 'Shows xmllint errors as annotation (with file and code line) in GitHub Actions' | ||
runs: | ||
using: 'node12' | ||
main: 'index.js' | ||
branding: | ||
icon: 'check-square' | ||
color: 'green' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env node | ||
console.log(`::add-matcher::${__dirname}/xmllint-matcher.json`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="info.xsd"> | ||
<idi>uniqueid</id> | ||
<name attribut="test">App name</name> | ||
</summary>This is for test</summary> | ||
<description><![CDATA[ | ||
Let's describe something | ||
]]></description> | ||
<licence>agpl</licence> | ||
<version>1.4</version> | ||
</info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="info.xsd"> | ||
<id>testid</id> | ||
<name attribut="test">App</name> | ||
<summary>This is a summary</summary> | ||
<description><![CDATA[ | ||
Let's describe something. | ||
]]></description> | ||
<licence>agpl</licence> | ||
<version>1.4</version> | ||
</info> |
Oops, something went wrong.