-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (54 loc) · 1.92 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: suse-xsl CI
on:
push:
branches-ignore:
- gh-pages
pull_request:
branches-ignore:
- gh-pages
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
# env:
# PATH: .:$PATH
# LD_PRELOAD: /lib/x86_64-linux-gnu/libSegFault.so
# DBXSL: http://docbook.sourceforge.net/release/xsl/current
runs-on: ubuntu-latest
steps:
- name: Output env variables
run: |
# Just for debugging purposes. Can be removed once it's stable
echo "Default branch=${default-branch}"
echo "GITHUB_WORKFLOW=${GITHUB_WORKFLOW}"
echo "GITHUB_ACTION=$GITHUB_ACTION"
echo "GITHUB_ACTIONS=$GITHUB_ACTIONS"
echo "GITHUB_ACTOR=$GITHUB_ACTOR"
echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY"
echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME"
echo "GITHUB_EVENT_PATH=$GITHUB_EVENT_PATH"
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
echo "GITHUB_SHA=$GITHUB_SHA"
echo "GITHUB_REF=$GITHUB_REF"
echo "GITHUB_HEAD_REF=$GITHUB_HEAD_REF"
echo "GITHUB_BASE_REF=$GITHUB_BASE_REF"
echo "::debug::---Start content of file $GITHUB_EVENT_PATH"
cat $GITHUB_EVENT_PATH
echo "\n"
echo "::debug::---end"
- name: Run update
run: sudo apt-get update --yes
- name: Install dependencies
run: |
sudo apt-get install --fix-missing -y jing libbatik-java libavalon-framework-java \
xml-core libxml2-utils docbook docbook-xsl parallel
- uses: actions/checkout@v3
- name: XML catalog
env:
DBXSL: http://docbook.sourceforge.net/release/xsl/current
run: |
xmlcatalog /etc/xml/catalog "$DBXSL/common/entities.ent"
xmlcatalog /etc/xml/catalog "$DBXSL/xhtml/docbook.xsl"
- name: Validate
run: ./tests/validate-xslt -j