Update documentation.yml
This commit is contained in:
@@ -2,18 +2,46 @@ name: Documentation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_documentation:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: PhpDocumentor
|
||||||
|
uses: katrinaas/actions-phpDocumentor@v1
|
||||||
|
- name: Save the changes
|
||||||
|
uses: EndBug/add-and-commit@v7
|
||||||
|
with:
|
||||||
|
add: "docs"
|
||||||
|
message: Adding generated Documentation
|
||||||
|
test:
|
||||||
|
if: always()
|
||||||
|
needs: build_documentation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: PhpDocumentor
|
|
||||||
uses: katrinaas/actions-phpDocumentor@v1
|
- name: Validate composer.json and composer.lock
|
||||||
- name: Save the changes
|
run: composer validate
|
||||||
uses: EndBug/add-and-commit@v7
|
|
||||||
with:
|
- name: Cache Composer packages
|
||||||
add: "docs"
|
id: composer-cache
|
||||||
message: Adding generated Documentation
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: vendor
|
||||||
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-php-
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
if: steps.composer-cache.outputs.cache-hit != 'true'
|
||||||
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
|
|
||||||
|
- name: Run test suite
|
||||||
|
run: vendor/bin/phpunit --stop-on-failure
|
||||||
|
|||||||
Reference in New Issue
Block a user