VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/xmlvalidate.yml
blob: 66389252f151e4dea1bde0f659501318de336a1b (plain)
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
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 }}"