Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update to use stable dependencies #433

Merged
merged 2 commits into from Jan 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 3 additions & 20 deletions .github/workflows/tests.yml
Expand Up @@ -5,22 +5,11 @@ on: ['push', 'pull_request']
jobs:
ci:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.prerelease }}
strategy:
matrix:
os: [ubuntu-latest]
php: ['7.3', '7.4']
php: ['7.3', '7.4', '8.0']
dependency-version: [prefer-lowest, prefer-stable]
prerelease: [false]
include:
- php: 8.0
os: ubuntu-latest
dependency-version: prefer-lowest
prerelease: true
- php: 8.0
os: ubuntu-latest
dependency-version: prefer-stable
prerelease: true

name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}

Expand All @@ -33,22 +22,16 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
tools: composer
coverage: none

- name: Setup Problem Matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install PHP 7 dependencies
- name: Install PHP dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
if: "matrix.php < 8"

- name: Install PHP 8 dependencies
run: composer update --${{ matrix.dependency-version }} --ignore-platform-req=php --no-interaction --no-progress --ansi
if: "matrix.php >= 8"

- name: Unit Tests
continue-on-error: ${{ matrix.prerelease }}
run: vendor/bin/pest --colors=always