Skip to content

Commit

Permalink
Merge pull request #1 from wurstsalat3000/1240_integrate-xep-validati…
Browse files Browse the repository at this point in the history
…on-in-CI

for xsf#1240: Integrate XEP validation in CI
  • Loading branch information
cal0pteryx authored Dec 16, 2022
2 parents 7eaa396 + 4fc97ab commit 81d7a20
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/xep-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: XEP validation

on:
pull_request:
branches:
- master

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

jobs:
build:
runs-on: ubuntu-latest
name: Validate any XEP changes
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Detect changes to XEP files
id: changed-xeps
uses: tj-actions/changed-files@v34
with:
files: |
xep-*.xml
inbox/*
- name: Validate changed file(s)
if: steps.changed-xeps.outputs.any_changed == 'true'
run: |
sudo apt-get install -y libxml2-utils
result=0
for xep in "${{ steps.changed-xeps.outputs.all_changed_files }}"; do
if ! tools/validate-xep0001-conformance.sh "$xep"; then
result=1
fi
done
exit $result

0 comments on commit 81d7a20

Please sign in to comment.