WebUI: Use Map instead of Mootools Hash in Torrents table
[qBittorrent.git] / .github / workflows / ci_file_health.yaml
blob76b358263e04d8b720d5f650db2ab8d6606442d6
1 name: CI - File health
3 on: [pull_request, push]
5 permissions: {}
7 concurrency:
8   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9   cancel-in-progress: ${{ github.head_ref != '' }}
11 jobs:
12   ci:
13     name: Check
14     runs-on: ubuntu-latest
15     steps:
16       - name: Checkout repository
17         uses: actions/checkout@v4
19       - name: Install tools
20         uses: actions/setup-python@v5
21         with:
22           python-version: "*"
24       - name: Check files
25         uses: pre-commit/action@v3.0.1
27       - name: Check doc
28         env:
29           pandoc_path: "${{ github.workspace }}/../pandoc"
30         run: |
31           # install pandoc
32           curl \
33             -L \
34             -o "${{ runner.temp }}/pandoc.tar.gz" \
35             "https://github.com/jgm/pandoc/releases/download/3.1.7/pandoc-3.1.7-linux-amd64.tar.gz"
36           tar -xf "${{ runner.temp }}/pandoc.tar.gz" -C "${{ github.workspace }}/.."
37           mv "${{ github.workspace }}/.."/pandoc-* "${{ env.pandoc_path }}"
38           # run pandoc
39           for lang in doc/*/; do
40             "${{ env.pandoc_path }}/bin/pandoc" -f markdown -t man -s "$lang/qbittorrent.1.md" -o "$lang/qbittorrent.1"
41             "${{ env.pandoc_path }}/bin/pandoc" -f markdown -t man -s "$lang/qbittorrent-nox.1.md" -o "$lang/qbittorrent-nox.1"
42           done
43           # check diff, ignore "Automatically generated by ..." part
44           git diff -I '\.\\".*' --exit-code