summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/android-xml-tidy.yml
blob: e733df4378099bacdd4d6578d8190ed8d654788b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Android app XML formatting verifier
on:
    # Run verifier whenever an Android XML file changes
    push:
        paths:
            - .github/workflows/android-xml-tidy.yml
            - android/src/main/**/*.xml
    # Run verifier if requested manually from the Actions tab
    workflow_dispatch:
jobs:
    xml-tidy:
        runs-on: ubuntu-latest
        steps:
            # Checkout repository
            - uses: actions/checkout@v2

            # Check formatting
            - run: |
                sudo apt-get install tidy
                source ci/ci-android-xml.sh
                tidy-verify-xml