diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 72e6dcc..7e6e62a 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -7,6 +7,9 @@ on: branches: - main +env: + PHP_VERSION: 8.3 + # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -23,7 +26,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: latest + php-version: ${{ env.PHP_VERSION }} coverage: none - name: Install dependencies @@ -42,7 +45,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: latest + php-version: ${{ env.PHP_VERSION }} coverage: none - name: Install dependencies @@ -55,13 +58,12 @@ jobs: run: composer analyse:psalm unit-tests: - name: Unit Tests (PHP ${{ matrix.php-version }}) on ${{ matrix.os }} + name: Unit Tests on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - php-version: [8.3] os: [ubuntu-latest, macos-latest, windows-latest] dependencies: [lowest, highest] @@ -72,7 +74,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-version }} + php-version: ${{ env.PHP_VERSION }} coverage: none - name: Install dependencies