diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 30c8a49..02a74f2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,5 +8,7 @@ updates: directory: "/" schedule: interval: "weekly" + cooldown: + default-days: 7 labels: - "dependencies" \ No newline at end of file diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 2c79d34..b03089a 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -14,7 +14,7 @@ jobs: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v3.1.0 + uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3d7cef8..91ed2b2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.head_ref }} - name: Set up PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 with: php-version: 8.3 @@ -38,7 +38,7 @@ jobs: run: composer lint - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v7 + uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0 with: commit_message: "Format Code" commit_user_name: 'GitHub Actions' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0124dd9..1fe1fc1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,50 +17,46 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: true matrix: - php: [8.5, 8.4, 8.3] - laravel: [13.*, 12.*, 11.*] + os: [ubuntu-latest] + php: [8.4, 8.3] + laravel: [13.*, 12.*] stability: [prefer-stable] include: - laravel: 13.* testbench: 11.* - laravel: 12.* testbench: 10.* - - laravel: 11.* - testbench: 9.* - exclude: - - laravel: 11.* - php: 8.5 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout Code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Cache Composer dependencies - uses: actions/cache@v6 + - name: Cache Dependencies + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.composer/cache/files - key: composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('composer.json') }} - restore-keys: | - composer-${{ matrix.php }}-${{ matrix.laravel }}- - composer-${{ matrix.php }}- + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 with: php-version: ${{ matrix.php }} - extensions: mbstring, pdo, pdo_sqlite, pdo_mysql, pdo_pgsql + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo_sqlite coverage: none - name: Install Dependencies run: | echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + + - name: Install Dependencies + run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests - run: ./vendor/bin/pest --parallel + run: vendor/bin/pest --parallel