com doc/zh: update github action: .github/workflows/build.yml
[email protected] (CHU Zhaowei) Wed, 06 Jan 2021 06:39:35 +0000
| Newsgroups | php.doc.zh |
|---|---|
| Message-ID | <[email protected]> |
Commit: bcc0afc78a7cf7e286465734bcb26214abfa29a5 Author: 蝦米 <[email protected]> Wed, 6 Jan 2021 13:33:31 +0800 Committer: CHU Zhaowei <[email protected]> Wed, 6 Jan 2021 14:39:35 +0800 Parents: 223a09e3f2a055ecbac8c20b61e2a0f4e9c0b46a Branches: master Link: http://git.php.net/?p=doc/zh.git;a=commitdiff;h=bcc0afc78a7cf7e286465734bcb26214abfa29a5 Log: update github action Changed paths: M .github/workflows/build.yml Diff: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3f29355..03a5e12c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build Test +name: Build on: push: @@ -15,14 +15,31 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check env + run: | + php -v + pear version + php -m + # https://github.com/actions/checkout - - name: Checkout + - name: Checkout doc-zh uses: actions/checkout@v2 with: path: 'zh' + + - name: Checkout doc-base + uses: actions/checkout@v2 + with: + repository: php/doc-base + path: 'doc-base' + + - name: Checkout doc-en + uses: actions/checkout@v2 + with: + repository: php/doc-en + path: 'en' + + - name: Build + run: php doc-base/configure.php --enable-xml-details --disable-libxml-check --redirect-stderr-to-stdout --with-lang=zh + - - name: Run Build Test Script - run: | - git clone --depth=1 https://github.com/php/doc-base.git doc-base - git clone --depth=1 https://github.com/php/doc-en.git en - php doc-base/configure.php --enable-xml-details --disable-libxml-check --redirect-stderr-to-stdout --with-lang=zh