-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.91 KB
/
validate_MAF_examples.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
# This workflow validates the examples against the RNG schema
# this is probably more proof-of-conceptish than actually useful, since one would expect
# validation to happen even before a push. For the same reason, I don't want to dynamically
# create the RNG from ODD, simply because I also expect this to be done before a push
# (or a pull request). But, who knows where we end up, so here's a piece of working functionality
name: validate_MAF_examples
# Controls when the action will run. Triggers the workflow on push or pull request
# events, for the master branch and also for the test branch (which can be created to
# test some stuff, then deleted, and again.
on:
push:
branches: [master, test]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: a guessing game
# run: |
# echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
# ls
# pwd
validate:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# install the necessary stuff
# it turns out that libxml is missing by design, although it's used to parse
# so many config files. Oh well.
# https://github.com/actions/virtual-environments/issues/423
- name: install libxml2
run: |
sudo apt-get update
sudo apt-get install libxml2-utils -y
# validate
- name: Validate with xmllint --noout --xinclude
run: xmllint --noout --xinclude --relaxng $GITHUB_WORKSPACE/MAF/MAF-1.rng $GITHUB_WORKSPACE/MAF/MAF-1_examples.xml