Browse Source

CI: update used PHP version

Dariusz Ruminski 3 years ago
parent
commit
aeb086f26f
3 changed files with 11 additions and 11 deletions
  1. 9 9
      .github/workflows/ci.yml
  2. 1 1
      .github/workflows/sca.yml
  3. 1 1
      tests/AutoReview/CiConfigurationTest.php

+ 9 - 9
.github/workflows/ci.yml

@@ -25,18 +25,13 @@ jobs:
             job-description: 'with Sf ^5'
             execute-flex-with-symfony-version: '^5' # Explicit check for Sf 5.x compatibility
 
-          - operating-system: 'ubuntu-20.04'
-            php-version: '8.0'
-            job-description: 'with Sf ^6'
-            execute-flex-with-symfony-version: '^6' # Explicit check for Sf 6.x compatibility
-
           - operating-system: 'ubuntu-20.04'
             php-version: '7.4'
-            job-description: 'with deployment'
-            execute-deployment: 'yes'
 
           - operating-system: 'ubuntu-20.04'
             php-version: '8.0'
+            job-description: 'with Sf ^6'
+            execute-flex-with-symfony-version: '^6' # Explicit check for Sf 6.x compatibility
 
           - operating-system: 'ubuntu-20.04'
             php-version: '8.1'
@@ -49,13 +44,18 @@ jobs:
             calculate-code-coverage: 'yes'
             phpunit-flags: '--testsuite coverage --exclude-group covers-nothing --coverage-clover build/logs/clover.xml'
 
+          - operating-system: 'ubuntu-20.04'
+            php-version: '8.1'
+            job-description: 'with deployment'
+            execute-deployment: 'yes'
+
           - operating-system: 'windows-latest'
-            php-version: '7.4'
+            php-version: '8.1'
             job-description: 'on Windows'
             FAST_LINT_TEST_CASES: 1
 
           - operating-system: 'macos-latest'
-            php-version: '7.4'
+            php-version: '8.1'
             job-description: 'on macOS'
 
     name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}

+ 1 - 1
.github/workflows/sca.yml

@@ -12,7 +12,7 @@ jobs:
         operating-system:
           - ubuntu-20.04
         php-version:
-          - 8.0
+          - 8.1
 
     name: Static Code Analysis
 

+ 1 - 1
tests/AutoReview/CiConfigurationTest.php

@@ -63,7 +63,7 @@ final class CiConfigurationTest extends TestCase
     {
         $ciVersionsForDeployments = $this->getAllPhpVersionsUsedByCiForDeployments();
         $ciVersions = $this->getAllPhpVersionsUsedByCiForTests();
-        $expectedPhp = '7.4'; // can't run dev-tools on 8.0 yet; $this->getMaxPhpVersionFromEntryFile();
+        $expectedPhp = $this->getMaxPhpVersionFromEntryFile();
 
         if (\in_array($expectedPhp.'snapshot', $ciVersions, true)) {
             // last version of used PHP is snapshot. we should test against previous one, that is stable