diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5000ef200..6122d1469 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -24,11 +35,11 @@ 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: [ '' ] @@ -36,15 +47,13 @@ jobs: - 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 @@ -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