mirror of
https://github.com/aphrody-labs/mullvadvpn-app.git
synced 2026-10-13 22:10:39 +00:00
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
---
|
|
name: Android - Check XML formatting
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/android-xml-format-check.yml
|
|
- android/**/*.xml
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
prepare:
|
|
name: Prepare
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Resolve container image
|
|
run: |
|
|
echo "inner_container_image=$(cat ./building/android-container-image.txt)" >> $GITHUB_ENV
|
|
outputs:
|
|
container_image: ${{ env.inner_container_image }}
|
|
|
|
check-formatting:
|
|
name: Lint XML using tidy
|
|
needs: prepare
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ${{ needs.prepare.outputs.container_image }}
|
|
steps:
|
|
# Fix for HOME path overridden by GH runners when building in containers, see:
|
|
# https://github.com/actions/runner/issues/863
|
|
- name: Fix HOME path
|
|
run: echo "HOME=/root" >> $GITHUB_ENV
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Run tidy
|
|
shell: bash
|
|
run: |-
|
|
git config --global --add safe.directory $(pwd)
|
|
android/scripts/tidy.sh formatAndCheckDiff
|