diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b77bcc..5243380 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,13 +12,14 @@ permissions: jobs: build: - name: "PHP Tests" runs-on: ubuntu-latest - strategy: matrix: php-version: [ '8.1', '8.2', '8.3' ] lexer-version: [ '^2.1', '~3.0.0', '^3.1' ] + + name: PHP ${{ matrix.php-version }} - Doctrine Lexer ${{ matrix.lexer-version }} + env: HAS_CC_SECRET: ${{secrets.CC_TEST_REPORTER_ID != '' }} steps: @@ -33,9 +34,9 @@ jobs: uses: actions/cache@v4 with: path: vendor - key: ${{ runner.os }}-php-${{ lexer-version }}${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-php-${{ matrix.lexer-version }}${{ hashFiles('**/composer.lock') }} restore-keys: | - ${{ runner.os }}-php-${{ lexer-version }} + ${{ runner.os }}-php-${{ matrix.lexer-version }} - name: Set up PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@v2