Skip to content

Commit

Permalink
Add XML Schema validation using GitHub Actions (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
falko committed Oct 18, 2023
1 parent 005a42a commit b7eaeda
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
xmllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: korelstar/xmllint-problem-matcher@v1
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "./examples/Chapter 11 Example 1 Originations/Chapter 11 Example.dmn"
xml-schema-file: ./xsd/DMN15.xsd
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "./examples/Chapter 11 Example 1 Originations/Financial.dmn"
xml-schema-file: ./xsd/DMN15.xsd
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "examples/Chapter 11 Example 2 Ranked Loan Products/Recommended Loan Products.dmn"
xml-schema-file: ./xsd/DMN15.xsd
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "examples/Chapter 11 Example 2 Ranked Loan Products/Loan info.dmn"
xml-schema-file: ./xsd/DMN15.xsd
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "examples/Diagram Interchange/diagram-interchange-decision-service.dmn"
xml-schema-file: ./xsd/DMN15.xsd
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "examples/Diagram Interchange/diagram-interchange-decision-with-listed-input-data.dmn"
xml-schema-file: ./xsd/DMN15.xsd
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "examples/Diagram Interchange/diagram-interchange-dish-example.dmn"
xml-schema-file: ./xsd/DMN15.xsd
- uses: ChristophWurst/xmllint-action@v1.2
with:
xml-file: "examples/Diagram Interchange/diagram-interchange-shape-with-label-text.dmn"
xml-schema-file: ./xsd/DMN15.xsd

0 comments on commit b7eaeda

Please sign in to comment.