VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/xmlvalidate.yml
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-12-25 11:35:58 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-12-25 11:35:58 +0100
commit3f8ac7cd516278ccbc15eed47f8520b045d044e3 (patch)
tree4997ac151eec9cbad2080a9c1310e3d9996c30ae /.github/workflows/xmlvalidate.yml
parentca331b8b349cf1a42e6219d8733ae581199961fc (diff)
downloadVeraCrypt-3f8ac7cd516278ccbc15eed47f8520b045d044e3.tar.gz
VeraCrypt-3f8ac7cd516278ccbc15eed47f8520b045d044e3.zip
Add XML validation Github workflow (contributed by Jertzukka github.com/Jertzukka/VeraCrypt/tree/ci)
Diffstat (limited to '.github/workflows/xmlvalidate.yml')
-rw-r--r--.github/workflows/xmlvalidate.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/xmlvalidate.yml b/.github/workflows/xmlvalidate.yml
new file mode 100644
index 00000000..66389252
--- /dev/null
+++ b/.github/workflows/xmlvalidate.yml
@@ -0,0 +1,36 @@
+name: Validate XML
+
+on:
+ push:
+ branches: [ "ci" ]
+ paths:
+ - 'Translations/*'
+ - 'src/Common/Language.xml'
+ - '.github/workflows/xmlvalidate.*'
+ pull_request:
+ branches: [ "ci" ]
+ paths:
+ - 'Translations/*'
+ - 'src/Common/Language.xml'
+ - '.github/workflows/xmlvalidate.*'
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ validate:
+
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 'latest'
+ - name: Install fast-xml-parser
+ run: npm install fast-xml-parser -g
+ - name: Run XML validator script
+ run: ${{ github.workspace }}/.github/workflows/xmlvalidate.sh "${{ github.workspace }}"