• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#                          __  __            _
2#                       ___\ \/ /_ __   __ _| |_
3#                      / _ \\  /| '_ \ / _` | __|
4#                     |  __//  \| |_) | (_| | |_
5#                      \___/_/\_\ .__/ \__,_|\__|
6#                               |_| XML parser
7#
8# Copyright (c) 2021-2022 Sebastian Pipping <sebastian@pipping.org>
9# Licensed under the MIT license:
10#
11# Permission is  hereby granted,  free of charge,  to any  person obtaining
12# a  copy  of  this  software   and  associated  documentation  files  (the
13# "Software"),  to  deal in  the  Software  without restriction,  including
14# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
15# distribute, sublicense, and/or sell copies of the Software, and to permit
16# persons  to whom  the Software  is  furnished to  do so,  subject to  the
17# following conditions:
18#
19# The above copyright  notice and this permission notice  shall be included
20# in all copies or substantial portions of the Software.
21#
22# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
23# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
24# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
25# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
26# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
27# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
28# USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30name: Ensure well-formed and valid XML
31
32on:
33  pull_request:
34  push:
35  schedule:
36    - cron: '0 2 * * 5'  # Every Friday at 2am
37
38jobs:
39  checks:
40    name: Ensure well-formed and valid XML
41    runs-on: ubuntu-20.04
42    steps:
43    - uses: actions/checkout@v3.1.0
44
45    - name: Install build dependencies
46      run: |-
47        set -x
48        sudo apt-get update
49        sudo apt-get install --yes --no-install-recommends -V \
50            docbook \
51            libxml2-utils \
52            w3c-sgml-lib
53
54    - name: Ensure well-formed and valid XML
55      run: |
56        set -x
57        xmllint --noout --valid expat/doc/reference.html
58        xmllint --noout --valid expat/doc/xmlwf.xml
59