Skip to content

Commit

Permalink
Fix: Run phpunit in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jun 28, 2020
1 parent 9a4052f commit 45ac914
Showing 1 changed file with 88 additions and 88 deletions.
176 changes: 88 additions & 88 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,88 +7,88 @@ on:
name: CI

jobs:
coding-guidelines:
name: Coding Guidelines

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- name: Run friendsofphp/php-cs-fixer
run: ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose

type-checker:
name: Type Checker

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- name: Update dependencies with composer
run: ./tools/composer update --no-interaction --no-ansi --no-progress

- name: Run vimeo/psalm on public API
run: ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false

- name: Run vimeo/psalm on internal code
run: ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats

backward-compatibility:
name: Backward Compatibility

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
extensions: intl

- name: Run roave/backward-compatibility-check
run: ./tools/roave-backward-compatibility-check --from=8.5.7

lint-xml-configuration:
name: Lint XML Configuration

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build Docker image
uses: ./.docker/lint-xml-configuration

- name: Lint XML configuration files
uses: ./.docker/lint-xml-configuration
with:
args: bash ./build/scripts/lint-xml-configuration
# coding-guidelines:
# name: Coding Guidelines
#
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Install PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: 7.4
# coverage: none
#
# - name: Run friendsofphp/php-cs-fixer
# run: ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose
#
# type-checker:
# name: Type Checker
#
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Install PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: 7.4
# coverage: none
#
# - name: Update dependencies with composer
# run: ./tools/composer update --no-interaction --no-ansi --no-progress
#
# - name: Run vimeo/psalm on public API
# run: ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false
#
# - name: Run vimeo/psalm on internal code
# run: ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats
#
# backward-compatibility:
# name: Backward Compatibility
#
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
#
# - name: Fetch tags
# run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
#
# - name: Install PHP with extensions
# uses: shivammathur/setup-php@v2
# with:
# php-version: 7.4
# coverage: none
# extensions: intl
#
# - name: Run roave/backward-compatibility-check
# run: ./tools/roave-backward-compatibility-check --from=8.5.7
#
# lint-xml-configuration:
# name: Lint XML Configuration
#
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Build Docker image
# uses: ./.docker/lint-xml-configuration
#
# - name: Lint XML configuration files
# uses: ./.docker/lint-xml-configuration
# with:
# args: bash ./build/scripts/lint-xml-configuration

tests:
name: Tests
Expand All @@ -99,16 +99,16 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - ubuntu-latest
- windows-latest

php-version:
- 7.2
- 7.3
# - 7.2
# - 7.3
- 7.4

dependencies:
- lowest
# - lowest
- highest

steps:
Expand Down Expand Up @@ -145,13 +145,13 @@ jobs:

- name: Install highest dependencies with composer
if: matrix.dependencies == 'highest'
run: ./tools/composer update --no-ansi --no-interaction --no-progress
run: php ./tools/composer update --no-ansi --no-interaction --no-progress

- name: Run sanity check
run: bash ./build/scripts/sanity-check

- name: Run tests with phpunit
run: ./phpunit --coverage-clover=coverage.xml
run: php ./phpunit --coverage-clover=coverage.xml --debug

- name: Send code coverage report to Codecov.io
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit 45ac914

Please sign in to comment.