diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a17abce..f061bc9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,51 +1,16 @@ name: main on: + pull_request: push: -jobs: - tests-80: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - php: [8.0.2] - laravel: [8.0, 9.0] - name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Get composer cache directory - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}- - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - tools: composer:v2 - extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap - coverage: none - - - name: Install dependencies - run: composer require "illuminate/support:^${{ matrix.laravel }}" --prefer-stable --prefer-dist --no-interaction - - - name: Execute tests - run: vendor/bin/phpunit --verbose - - tests-81: +jobs: + tests: runs-on: ubuntu-latest strategy: fail-fast: true matrix: - php: [8.1] - laravel: [8.0, 9.0, 10.0] + php: [8.2, 8.3] + laravel: [11.0] name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} steps: - name: Checkout code @@ -97,7 +62,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' tools: composer:v2 extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap coverage: none @@ -107,4 +72,4 @@ jobs: - name: Run style check id: style_check - run: vendor/bin/phpcs + run: vendor/bin/pint --test