diff --git a/.github/workflows/OxygenCheckWellFormedNess.yml b/.github/workflows/OxygenCheckWellFormedNess.yml new file mode 100644 index 00000000000..197fc474fda --- /dev/null +++ b/.github/workflows/OxygenCheckWellFormedNess.yml @@ -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