Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create OxygenCheckWellFormedNess.yml #536

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
49 changes: 49 additions & 0 deletions .github/workflows/OxygenCheckWellFormedNess.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will use OxygenScript to build features.

name: Awesome OxygenScript for DITA wellformedness check

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: DITA wellformedness check
run: |
cd scripts/oxygen/scripts
echo "Checking dita/RTC/RTC_NG_API_Android.ditamap ..."
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_NG_API_Android.ditamap -r ditaValidationReport_cn.xml || cat ditaValidationReport_cn.xml
echo "Checking dita/RTC/RTC_NG_API_Windows.ditamap ..."
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_NG_API_Windows.ditamap -r ditaValidationReport_cn.xml || cat ditaValidationReport_cn.xml
echo "Checking dita/RTC/RTC_NG_API_iOS.ditamap ..."
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_NG_API_iOS.ditamap -r ditaValidationReport_cn.xml || cat ditaValidationReport_cn.xml
echo "Checking dita/RTC/RTC_API_Flutter.ditamap ..."
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_API_Flutter.ditamap -r ditaValidationReport_cn.xml || cat ditaValidationReport_cn.xml

echo "Checking dita/RTC/RTC_NG_API_Android.ditamap ..."
./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_NG_API_Android.ditamap -r ditaValidationReport_en.xml || cat ditaValidationReport_en.xml
echo "Checking dita/RTC/RTC_NG_API_Windows.ditamap ..."
./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_NG_API_Windows.ditamap -r ditaValidationReport_en.xml || cat ditaValidationReport_en.xml
echo "Checking dita/RTC/RTC_NG_API_iOS.ditamap ..."
./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_NG_API_iOS.ditamap -r ditaValidationReport_en.xml || cat ditaValidationReport_en.xml
echo "Checking dita/RTC/RTC_API_Flutter.ditamap ..."
./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_API_Flutter.ditamap -r ditaValidationReport_en.xml || cat ditaValidationReport_en.xml

# Just wanna an exit 0
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_NG_API_Android.ditamap -r ditaValidationReport_cn.xml
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_NG_API_Windows.ditamap -r ditaValidationReport_cn.xml
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_NG_API_iOS.ditamap -r ditaValidationReport_cn.xml
./validateCheckDITA.sh -i ../../../dita/RTC/RTC_API_Flutter.ditamap -r ditaValidationReport_cn.xml

./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_NG_API_Android.ditamap -r ditaValidationReport_en.xml
./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_NG_API_Windows.ditamap -r ditaValidationReport_en.xml
./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_NG_API_iOS.ditamap -r ditaValidationReport_en.xml
./validateCheckDITA.sh -i ../../../en-US/dita/RTC/RTC_API_Flutter.ditamap -r ditaValidationReport_en.xml