Initial Drupal 11 with DDEV setup
This commit is contained in:
28
vendor/phpowermove/docblock/.github/workflows/api.yml
vendored
Normal file
28
vendor/phpowermove/docblock/.github/workflows/api.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Api Documentation
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
build-api:
|
||||
name: Build api
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout api repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.2
|
||||
extensions: mbstring, dom, json, libxml, xml, xmlwriter
|
||||
coverage: none
|
||||
- name: Download Sami
|
||||
run: wget https://github.com/cristianoc72/Sami/releases/download/v4.1.3/sami.phar
|
||||
- name: Build api documentation
|
||||
run: php sami.phar update sami.php
|
||||
- name: Deploy api documentation site
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./api
|
||||
28
vendor/phpowermove/docblock/.github/workflows/coverage-report.yml
vendored
Normal file
28
vendor/phpowermove/docblock/.github/workflows/coverage-report.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# Run coverage report and upload it
|
||||
name: Coverage
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
jobs:
|
||||
coverage:
|
||||
name: coverage
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup PHP, with composer and extensions
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.0
|
||||
extensions: mbstring, dom, json, libxml, xml, xmlwriter
|
||||
coverage: pcov
|
||||
- name: Install dependencies
|
||||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
|
||||
- name: Generate coverage report
|
||||
run: composer coverage:clover
|
||||
- name: Upload coverage report to Scrutinizer
|
||||
uses: sudo-bot/action-scrutinizer@latest
|
||||
with:
|
||||
cli-args: "--format=php-clover clover.xml"
|
||||
38
vendor/phpowermove/docblock/.github/workflows/tests.yml
vendored
Normal file
38
vendor/phpowermove/docblock/.github/workflows/tests.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: Docblock Test Suite
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test:
|
||||
name: test
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
php-versions: ['8.0']
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
steps:
|
||||
- name: Fix autocrlf on Windows
|
||||
if: matrix.operating-system == 'windows-latest'
|
||||
run: git config --global core.autocrlf false
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup PHP, with composer and extensions
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
extensions: mbstring, dom, json, libxml, xml, xmlwriter
|
||||
coverage: none
|
||||
- name: Get composer cache directory
|
||||
id: composer-cache
|
||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||
- name: Cache composer dependencies
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.composer-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
- name: Install dependencies
|
||||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
|
||||
- name: Check code style
|
||||
run: composer cs
|
||||
- name: Test with phpunit
|
||||
run: composer test
|
||||
Reference in New Issue
Block a user