Skip to content

Commit

Permalink
run tests on PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz committed Oct 7, 2020
1 parent b856035 commit 71117b0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/unit-tests.yml
Expand Up @@ -14,6 +14,7 @@ jobs:
- "highest"
php-version:
- "7.4"
- "8.0"
operating-system:
- "ubuntu-latest"

Expand All @@ -24,7 +25,6 @@ jobs:
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
Expand All @@ -39,13 +39,8 @@ jobs:
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "installing lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress"

- name: "installing highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress"
- name: "installing dependencies"
run: "composer install --no-interaction --no-progress --ignore-platform-req php"

- name: "running unit tests ( phpunit )"
run: "composer test:unit"

0 comments on commit 71117b0

Please sign in to comment.