com doc/fr: Enhancement: Build documentation on GitHub Actions: .github/workflows/integrate.yaml

[email protected] (George Peter Banyard) Tue, 26 Jan 2021 19:22:13 +0000
Newsgroups php.doc.fr
Message-ID <[email protected]>
Commit:    31a5037a456e57857530d02d597dd55d87c5ac71
Author:    Fabien Villepinte <[email protected]>         Tue, 26 Jan 2021 11:48:32 +0100
Committer: George Peter Banyard <[email protected]>      Tue, 26 Jan 2021 19:22:13 +0000
Parents:   35959a75d1d2f45a5188c3ab33ad0e4c0acda250
Branches:  master

Link:       http://git.php.net/?p=doc/fr.git;a=commitdiff;h=31a5037a456e57857530d02d597dd55d87c5ac71

Log:
Enhancement: Build documentation on GitHub Actions

Closes GH-15

Signed-off-by: George Peter Banyard <[email protected]>

Changed paths:
  A  .github/workflows/integrate.yaml


Diff:
diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml
new file mode 100644
index 0000000000..78328b2b75
--- /dev/null
+++ b/.github/workflows/integrate.yaml
@@ -0,0 +1,43 @@
+# https://docs.github.com/en/actions
+
+name: "Integrate"
+
+on:
+  pull_request: null
+  push:
+    branches:
+      - "master"
+
+jobs:
+  build:
+    name: "Build"
+
+    runs-on: "ubuntu-latest"
+
+    strategy:
+      matrix:
+        language:
+          - "fr"
+
+    steps:
+      - name: "Checkout php/doc-${{ matrix.language }}"
+        uses: "actions/checkout@v2"
+        with:
+          path: "${{ matrix.language }}"
+          repository: "php/doc-${{ matrix.language }}"
+
+      - name: "Checkout php/doc-en as fallback"
+        if: "matrix.language != 'en'"
+        uses: "actions/checkout@v2"
+        with:
+          path: "en"
+          repository: "php/doc-en"
+
+      - name: "Checkout php/doc-base"
+        uses: "actions/checkout@v2"
+        with:
+          path: "doc-base"
+          repository: "php/doc-base"
+
+      - name: "Build documentation for ${{ matrix.language }}"
+        run: "php8.0 doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"