Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException committed Oct 31, 2023
1 parent 81caba0 commit b8439e3
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
tests:

runs-on: ubuntu-latest
runs-on: "ubuntu-latest"
continue-on-error: "${{ matrix.php-versions == '8.3' || matrix.symfony == '^6.4' || matrix.symfony == '^7.0' }}"
strategy:
matrix:
Expand All @@ -25,11 +25,11 @@ jobs:
php-versions: '8.1'

steps:
- uses: actions/checkout@v4
- uses: "actions/checkout@v4"

- name: "Cache Composer packages"
id: "composer-cache"
uses: actions/cache@v3
uses: "actions/cache@v3"
with:
path: "vendor"
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
Expand All @@ -42,28 +42,15 @@ jobs:
php-version: "${{ matrix.php-versions }}"
extensions: "intl, xdebug"

- name: "Adapt dependencies"
if: ${{ matrix.php-versions == '8.3' }}
run: composer config platform.php 8.2.99

- name: "Adapt dependencies"
if: ${{ matrix.symfony == '^6.4' || matrix.symfony == '^7.0' }}
run: composer config minimum-stability dev

- name: "Install dependencies"
run: |
composer require --dev --update-with-all-dependencies \
symfony/http-kernel:${{ matrix.symfony }} \
symfony/http-foundation:${{ matrix.symfony }} \
symfony/dependency-injection:${{ matrix.symfony }} \
symfony/config:${{ matrix.symfony }} \
symfony/twig-bundle:${{ matrix.symfony }}
run: "composer config minimum-stability dev"

- name: "Update to latest dependencies"
run: composer update
run: "composer install"

- name: "Unit + Integration"
run: vendor/bin/phpunit
run: "vendor/bin/phpunit"

- name: "Mutation tests"
run: vendor/bin/infection --min-msi=95 --no-progress --threads=5
run: "vendor/bin/infection --min-msi=95 --no-progress --threads=5"

0 comments on commit b8439e3

Please sign in to comment.