Skip to content

Commit

Permalink
Move php lint source into step of workflow PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
hungtrinh committed Mar 9, 2023
1 parent cba8950 commit 93adc40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 63 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/lint.yml

This file was deleted.

17 changes: 13 additions & 4 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,30 @@ jobs:
- name: Provider config base on env for intergrate test
run: cp tests/TestConfiguration.env.php tests/TestConfiguration.php



- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: phpunit:9
tools: cs2pr
extensions: memcached, memcache
ini-values: ${{ env.PHP_INI_VALUES }}
env:
# https://github.com/shivammathur/setup-php/issues/407#issuecomment-773675741
fail-fast: true

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Lint PHP source files
run: |
bin/parallel-lint --exclude vendor --exclude tests/Zend/Loader/_files/ParseError.php . --checkstyle | cs2pr
- name: Setup LDAP
run: |
sudo apt-get install -y libnss-ldap libpam-ldap ldap-utils
tests/resources/openldap/docker-entrypoint-initdb.d/init.sh
- name: "Run tests on PHP ${{ matrix.php-version }} (Experimental: ${{ matrix.experimental }})"
run: phpunit -c tests/phpunit.xml
run: bin/phpunit -c tests/phpunit.xml
continue-on-error: ${{ matrix.experimental }}

0 comments on commit 93adc40

Please sign in to comment.