Skip to content

Commit

Permalink
Remove old work arounds
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Oct 17, 2020
1 parent 871bc8f commit a045c60
Showing 1 changed file with 7 additions and 33 deletions.
40 changes: 7 additions & 33 deletions .github/workflows/tests.yml
Expand Up @@ -50,29 +50,20 @@ jobs:
- name: Setup problem matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install PHP 7 dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-dist --no-interaction --no-progress
if: "matrix.php < 8"

- name: Setup PHP 8 Dependencies
- name: Setup PHP 8 dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "phpunit/phpunit:^9.3.3" "doctrine/dbal:^3.0" --no-update --no-interaction
if: "matrix.php >= 8"

- name: Install PHP 8 Dependencies
- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --ignore-platform-req=php
if: "matrix.php >= 8"
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose
Expand All @@ -87,15 +78,7 @@ jobs:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, 8.0]
include:
- php: 7.2
stability: prefer-lowest
- php: 7.3
stability: prefer-stable
- php: 7.4
stability: prefer-stable
- php: 8.0
stability: prefer-stable
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows

Expand All @@ -119,29 +102,20 @@ jobs:
- name: Setup problem matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install PHP 7 Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-dist --no-interaction --no-progress
if: "matrix.php < 8"

- name: Setup PHP 8 Dependencies
- name: Setup PHP 8 dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "phpunit/phpunit:^9.3.3" "doctrine/dbal:^3.0" --no-update --no-interaction
if: "matrix.php >= 8"

- name: Install PHP 8 Dependencies
- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --ignore-platform-req=php
if: "matrix.php >= 8"
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose

0 comments on commit a045c60

Please sign in to comment.