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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the CI setup #860

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 21 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,22 @@ defaults:
shell: bash

jobs:
check_composer:
name: Check composer.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: '8.2'
- run: composer validate --strict --no-check-lock

static_analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
Expand All @@ -24,27 +35,25 @@ jobs:

tests:
name: Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
composer_flags: [ '' ]
minimum_stability: [ '' ]
symfony_deprecations_helper: [ '' ]
include:
- php: '7.2'
composer_flags: '--prefer-lowest --prefer-stable'
symfony_deprecations_helper: weak
- php: '8.0'
minimum_stability: dev
- php: '7.4'
- php: '8.2'
minimum_stability: dev
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -57,17 +66,15 @@ jobs:

- name: Configure for minimum stability
if: "${{ matrix.minimum_stability == 'dev' }}"
run: |
composer config minimum-stability dev
run: composer config minimum-stability dev

- name: Install dependencies
run: |
composer update ${{ matrix.composer_flags }}
run: composer update ${{ matrix.composer_flags }}

- name: Run tests
run: |
export SYMFONY_DEPRECATIONS_HELPER="${{ matrix.symfony_deprecations_helper }}"
vendor/bin/phpunit -v --coverage-clover=coverage.xml
env:
SYMFONY_DEPRECATIONS_HELPER: "${{ matrix.symfony_deprecations_helper }}"
run: vendor/bin/phpunit -v --coverage-clover=coverage.xml

- name: Upload coverage
uses: codecov/codecov-action@v3
Expand Down