1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Add XML validation Github workflow (contributed by Jertzukka github.com/Jertzukka/VeraCrypt/tree/ci)

This commit is contained in:
Mounir IDRASSI
2024-12-25 11:35:58 +01:00
parent ca331b8b34
commit 3f8ac7cd51
2 changed files with 78 additions and 0 deletions

36
.github/workflows/xmlvalidate.yml vendored Normal file
View File

@@ -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 }}"