mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-05 16:46:35 -05:00
Add English fallbacks for 12 missing keys in 41 language files. Report all missing keys and XML errors before failing validation. Run four regression tests in CI. All tests and 43 XML files pass.
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Validate XML
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
paths:
|
|
- 'Translations/*'
|
|
- 'src/Common/Language.xml'
|
|
- '.github/workflows/xmlvalidate.*'
|
|
- 'Tests/test_xmlvalidate.py'
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
paths:
|
|
- 'Translations/*'
|
|
- 'src/Common/Language.xml'
|
|
- '.github/workflows/xmlvalidate.*'
|
|
- 'Tests/test_xmlvalidate.py'
|
|
|
|
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@4.5.2 -g
|
|
- name: Test XML validator
|
|
run: python3 Tests/test_xmlvalidate.py
|
|
- name: Run XML validator script
|
|
run: ${{ github.workspace }}/.github/workflows/xmlvalidate.sh "${{ github.workspace }}"
|