Skip to content

[1.0.0] PHPStan / phpdoc clean-up. #344

[1.0.0] PHPStan / phpdoc clean-up.

[1.0.0] PHPStan / phpdoc clean-up. #344

Workflow file for this run

name: Analysis
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
name: Code Analysis
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extension-csv: openssl,mbstring
coverage: pcov
- name: Install OpenLDAP
run: sudo ./tests/resources/openldap/setup.sh
- name: Get Composer Cache Directory
id: composer-cache
shell: bash
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Install Composer Dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Run Static Analysis
run: |
composer run-script analyse
composer run-script analyse-tests
- name: Run Test Coverage
env:
COMPOSER_ALLOW_SUPERUSER: 1
run: sudo composer run-script --timeout=0 test-coverage
- name: Upload Spec Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
name: FreeDSx-LDAP-Unit
- name: Upload Integration Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage-integration.xml
name: FreeDSx-LDAP-Integration