Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spatie/laravel-backup
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8.1.8
Choose a base ref
...
head repository: spatie/laravel-backup
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Apr 12, 2023

  1. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Apr 12, 2023
    Copy the full SHA
    40d701b View commit details

Commits on Apr 17, 2023

  1. Update installation-and-setup.md

    poldixd authored and freekmurze committed Apr 17, 2023
    Copy the full SHA
    39ae354 View commit details

Commits on Apr 25, 2023

  1. Copy the full SHA
    c0f5f7b View commit details
  2. Remove unused exception

    dejagersh authored and freekmurze committed Apr 25, 2023
    Copy the full SHA
    381f56f View commit details
  3. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Apr 25, 2023
    Copy the full SHA
    45a183f View commit details

Commits on May 1, 2023

  1. Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0

    Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.6 to 1.4.0.
    - [Release notes](https://github.com/dependabot/fetch-metadata/releases)
    - [Commits](dependabot/fetch-metadata@v1.3.6...v1.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: dependabot/fetch-metadata
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 1, 2023
    Copy the full SHA
    29588b8 View commit details
  2. Merge pull request #1663 from spatie/dependabot/github_actions/depend…

    …abot/fetch-metadata-1.4.0
    
    Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0
    github-actions[bot] authored May 1, 2023
    Copy the full SHA
    f2609a9 View commit details

Commits on May 2, 2023

  1. Fixes wrong translation of 'date' in FA.

    Faraz Samapoor authored and freekmurze committed May 2, 2023
    Copy the full SHA
    bcf8335 View commit details
  2. Copy the full SHA
    a743a8b View commit details
  3. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed May 2, 2023
    Copy the full SHA
    334c7cc View commit details

Commits on May 29, 2023

  1. Fix typo in config

    siarheipashkevich authored and freekmurze committed May 29, 2023
    Copy the full SHA
    2f39187 View commit details

Commits on May 30, 2023

  1. Fix PhpStan

    erikn69 authored and freekmurze committed May 30, 2023
    Copy the full SHA
    4d950d5 View commit details

Commits on Jun 1, 2023

  1. Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1

    Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.4.0 to 1.5.1.
    - [Release notes](https://github.com/dependabot/fetch-metadata/releases)
    - [Commits](dependabot/fetch-metadata@v1.4.0...v1.5.1)
    
    ---
    updated-dependencies:
    - dependency-name: dependabot/fetch-metadata
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 1, 2023
    Copy the full SHA
    3cf2603 View commit details
  2. Merge pull request #1676 from spatie/dependabot/github_actions/depend…

    …abot/fetch-metadata-1.5.1
    
    Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1
    github-actions[bot] authored Jun 1, 2023
    Copy the full SHA
    53f9576 View commit details

Commits on Jun 2, 2023

  1. Add Hebrew translations.

    gasner authored and freekmurze committed Jun 2, 2023
    Copy the full SHA
    e4f5c3f View commit details
  2. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Jun 2, 2023
    Copy the full SHA
    cbc7469 View commit details

Commits on Jul 1, 2023

  1. Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0

    Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.5.1 to 1.6.0.
    - [Release notes](https://github.com/dependabot/fetch-metadata/releases)
    - [Commits](dependabot/fetch-metadata@v1.5.1...v1.6.0)
    
    ---
    updated-dependencies:
    - dependency-name: dependabot/fetch-metadata
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jul 1, 2023
    Copy the full SHA
    750aa41 View commit details
  2. Merge pull request #1681 from spatie/dependabot/github_actions/depend…

    …abot/fetch-metadata-1.6.0
    
    Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0
    github-actions[bot] authored Jul 1, 2023
    Copy the full SHA
    255b174 View commit details

Commits on Aug 7, 2023

  1. Copy the full SHA
    9be1b7f View commit details
  2. Copy the full SHA
    2d37340 View commit details

Commits on Aug 9, 2023

  1. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Aug 9, 2023
    Copy the full SHA
    b03452a View commit details
  2. - Introduce a retry mechanism for the backup command, in case an exce…

    …ption is encountered
    byoan authored and freekmurze committed Aug 9, 2023
    Copy the full SHA
    8f6ce67 View commit details
  3. - Introduce a retry mechanism for the cleanup command, in case an exc…

    …eption is encountered
    Yoan Ballesteros authored and freekmurze committed Aug 9, 2023
    Copy the full SHA
    20f3236 View commit details
  4. - Add tests for the tries argument and configuration added to the b…

    …ackup and cleanup commands
    Yoan Ballesteros authored and freekmurze committed Aug 9, 2023
    Copy the full SHA
    2908973 View commit details
  5. - Export retry logic in a dedicated trait to use conditional methods …

    …and the new Sleep helper (Laravel 10)
    Yoan Ballesteros authored and freekmurze committed Aug 9, 2023
    Copy the full SHA
    45c3013 View commit details
  6. - Add tests with the new Sleep helper (Laravel 10)

    Yoan Ballesteros authored and freekmurze committed Aug 9, 2023
    Copy the full SHA
    183bc03 View commit details
  7. - Remove the isSleepHelperAvailable helper, use the new Sleep class…

    … directly
    Yoan Ballesteros authored and freekmurze committed Aug 9, 2023
    Copy the full SHA
    e7590fc View commit details
  8. - Bump minimal Laravel version required to >= 10.10.0, in order for t…

    …he `Sleep` helper to be available
    Yoan Ballesteros authored and freekmurze committed Aug 9, 2023
    Copy the full SHA
    08fd9c0 View commit details
  9. update test workflow

    freekmurze committed Aug 9, 2023
    Copy the full SHA
    a9eee86 View commit details
  10. Update composer.json

    freekmurze committed Aug 9, 2023
    Copy the full SHA
    70179c3 View commit details
  11. Fix styling

    freekmurze authored and github-actions[bot] committed Aug 9, 2023
    Copy the full SHA
    800f344 View commit details
  12. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Aug 9, 2023
    Copy the full SHA
    9e5f939 View commit details

Commits on Aug 10, 2023

  1. bump php version on phpstan.yml

    erikn69 authored and freekmurze committed Aug 10, 2023
    Copy the full SHA
    b42f194 View commit details
  2. Copy the full SHA
    3a86fbc View commit details
  3. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Aug 10, 2023
    Copy the full SHA
    44b0329 View commit details
  4. Fix for PhpStan

    erikn69 authored and freekmurze committed Aug 10, 2023
    Copy the full SHA
    d3c7d35 View commit details

Commits on Aug 17, 2023

  1. Update Laravel & Backup Server docs to latest version

    I've updated the Laravel docs and the Laravel Backup Server docs to their latest/main available version.
    rico-vz authored and freekmurze committed Aug 17, 2023
    Copy the full SHA
    f4a2abc View commit details

Commits on Aug 28, 2023

  1. Copy the full SHA
    c084f22 View commit details

Commits on Aug 30, 2023

  1. add test

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    0d26f98 View commit details
  2. Copy the full SHA
    8906735 View commit details
  3. Copy the full SHA
    a73aa96 View commit details
  4. add test with retries

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    3a1d775 View commit details
  5. output errors to console from job

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    552bcc9 View commit details
  6. add exception decorator

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    0d37dfd View commit details
  7. wip

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    f98c999 View commit details
  8. formatting

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    771b368 View commit details
  9. formatting

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    cfa8f29 View commit details
  10. wip

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    cb479ca View commit details
  11. wip

    joshbonnick authored and freekmurze committed Aug 30, 2023
    Copy the full SHA
    d27fddf View commit details
  12. Copy the full SHA
    ff84e24 View commit details
Showing with 2,693 additions and 627 deletions.
  1. +17 −4 .github/dependabot.yml
  2. +24 −31 .github/workflows/dependabot-auto-merge.yml
  3. +19 −20 .github/workflows/php-cs-fixer.yml
  4. +5 −3 .github/workflows/phpstan.yml
  5. +51 −40 .github/workflows/run-tests.yml
  6. +2 −2 .github/workflows/update-changelog.yml
  7. +1 −0 .gitignore
  8. +481 −0 CHANGELOG.md
  9. +2 −2 README.md
  10. +2 −1 UPGRADING.md
  11. +22 −19 composer.json
  12. +72 −11 config/backup.php
  13. +1 −1 docs/_index.md
  14. +1 −1 docs/advanced-usage/backing-up-a-non-laravel-application.md
  15. +22 −0 docs/advanced-usage/isolated-mode.md
  16. +3 −2 docs/cleaning-up-old-backups/overview.md
  17. +1 −1 docs/high-level-overview.md
  18. +91 −4 docs/installation-and-setup.md
  19. +2 −2 docs/introduction.md
  20. +2 −2 docs/monitoring-the-health-of-all-backups/overview.md
  21. +1 −1 docs/requirements.md
  22. +1 −1 docs/sending-notifications/customizing-the-notifiable.md
  23. +1 −1 docs/taking-backups/overview.md
  24. +34 −9 phpstan-baseline.neon
  25. +2 −2 phpstan.neon.dist
  26. +16 −6 phpunit.xml.dist
  27. +38 −0 rector.php
  28. +1 −1 resources/lang/es/notifications.php
  29. +14 −14 resources/lang/fa/notifications.php
  30. +7 −7 resources/lang/fr/notifications.php
  31. +45 −0 resources/lang/he/notifications.php
  32. +5 −5 resources/lang/it/notifications.php
  33. +45 −0 resources/lang/kk/notifications.php
  34. +45 −0 resources/lang/ko/notifications.php
  35. +4 −4 resources/lang/pt-BR/notifications.php
  36. +6 −6 resources/lang/pt/notifications.php
  37. +45 −0 resources/lang/sk/notifications.php
  38. +5 −5 resources/lang/tr/notifications.php
  39. +1 −0 src/BackupDestination/Backup.php
  40. +4 −2 src/BackupDestination/BackupCollection.php
  41. +3 −15 src/BackupDestination/BackupDestination.php
  42. +7 −3 src/BackupDestination/BackupDestinationFactory.php
  43. +14 −7 src/BackupServiceProvider.php
  44. +38 −8 src/Commands/BackupCommand.php
  45. +3 −1 src/Commands/BaseCommand.php
  46. +29 −14 src/Commands/CleanupCommand.php
  47. +22 −13 src/Commands/ListCommand.php
  48. +12 −7 src/Commands/MonitorCommand.php
  49. +51 −0 src/Config/BackupConfig.php
  50. +39 −0 src/Config/CleanupConfig.php
  51. +36 −0 src/Config/Config.php
  52. +39 −0 src/Config/DestinationConfig.php
  53. +29 −0 src/Config/MonitoredBackupConfig.php
  54. +25 −0 src/Config/MonitoredBackupsConfig.php
  55. +24 −0 src/Config/NotificationDiscordConfig.php
  56. +36 −0 src/Config/NotificationMailConfig.php
  57. +33 −0 src/Config/NotificationMailSenderConfig.php
  58. +26 −0 src/Config/NotificationSlackConfig.php
  59. +39 −0 src/Config/NotificationsConfig.php
  60. +25 −0 src/Config/SourceConfig.php
  61. +32 −0 src/Config/SourceFilesConfig.php
  62. +30 −0 src/Config/StrategyConfig.php
  63. +1 −2 src/Events/BackupHasFailed.php
  64. +1 −2 src/Events/BackupManifestWasCreated.php
  65. +1 −2 src/Events/BackupWasSuccessful.php
  66. +1 −2 src/Events/BackupZipWasCreated.php
  67. +1 −2 src/Events/CleanupHasFailed.php
  68. +1 −2 src/Events/CleanupWasSuccessful.php
  69. +1 −2 src/Events/DumpingDatabase.php
  70. +1 −2 src/Events/HealthyBackupWasFound.php
  71. +1 −2 src/Events/UnhealthyBackupWasFound.php
  72. +26 −0 src/Exceptions/BackupFailed.php
  73. +10 −2 src/Exceptions/CannotCreateDbDumper.php
  74. +33 −0 src/Exceptions/InvalidConfig.php
  75. +0 −13 src/Exceptions/InvalidConfiguration.php
  76. +1 −1 src/Exceptions/NotificationCouldNotBeSent.php
  77. +4 −1 src/Helpers/ConsoleOutput.php
  78. +2 −1 src/Helpers/File.php
  79. +1 −0 src/Helpers/Format.php
  80. +3 −7 src/Listeners/EncryptBackupArchive.php
  81. +9 −1 src/Notifications/BaseNotification.php
  82. +3 −2 src/Notifications/Channels/Discord/DiscordChannel.php
  83. +21 −11 src/Notifications/Channels/Discord/DiscordMessage.php
  84. +9 −6 src/Notifications/EventHandler.php
  85. +11 −4 src/Notifications/Notifiable.php
  86. +9 −10 src/Notifications/Notifications/BackupHasFailedNotification.php
  87. +9 −10 src/Notifications/Notifications/BackupWasSuccessfulNotification.php
  88. +9 −10 src/Notifications/Notifications/CleanupHasFailedNotification.php
  89. +9 −10 src/Notifications/Notifications/CleanupWasSuccessfulNotification.php
  90. +10 −11 src/Notifications/Notifications/HealthyBackupWasFoundNotification.php
  91. +9 −10 src/Notifications/Notifications/UnhealthyBackupWasFoundNotification.php
  92. +30 −0 src/Support/Data.php
  93. +54 −31 src/Tasks/Backup/BackupJob.php
  94. +18 −12 src/Tasks/Backup/BackupJobFactory.php
  95. +14 −9 src/Tasks/Backup/DbDumperFactory.php
  96. +27 −14 src/Tasks/Backup/FileSelection.php
  97. +7 −8 src/Tasks/Backup/Manifest.php
  98. +32 −19 src/Tasks/Backup/Zip.php
  99. +8 −12 src/Tasks/Cleanup/CleanupJob.php
  100. +2 −3 src/Tasks/Cleanup/CleanupStrategy.php
  101. +1 −2 src/Tasks/Cleanup/Period.php
  102. +30 −14 src/Tasks/Cleanup/Strategies/DefaultStrategy.php
  103. +5 −4 src/Tasks/Monitor/BackupDestinationStatus.php
  104. +21 −9 src/Tasks/Monitor/BackupDestinationStatusFactory.php
  105. +1 −1 src/Tasks/Monitor/HealthCheck.php
  106. +1 −2 src/Tasks/Monitor/HealthCheckFailure.php
  107. +1 −2 src/Tasks/Monitor/HealthChecks/MaximumAgeInDays.php
  108. +1 −2 src/Tasks/Monitor/HealthChecks/MaximumStorageInMegabytes.php
  109. +55 −0 src/Traits/Retryable.php
  110. +10 −5 tests/BackupDestination/BackupTest.php
  111. +164 −4 tests/Commands/BackupCommandTest.php
  112. +53 −1 tests/Commands/CleanupCommandTest.php
  113. +0 −10 tests/Commands/ListCommandTest.php
  114. +3 −16 tests/Commands/MonitorCommandTest.php
  115. +37 −0 tests/Config/ConfigTest.php
  116. +1 −2 tests/DbDumperFactoryTest.php
  117. +2 −2 tests/Events/UnhealthyBackupWasFoundTest.php
  118. +5 −6 tests/FileSelectionTest.php
  119. +4 −5 tests/FormatTest.php
  120. +4 −4 tests/Listeners/EncryptBackupArchiveTest.php
  121. +0 −1 tests/ManifestTest.php
  122. +78 −0 tests/Notifications/Channels/Discord/DiscordMessageTest.php
  123. +81 −6 tests/Notifications/EventHandlerTest.php
  124. +2 −2 tests/Pest.php
  125. +10 −12 tests/TestCase.php
  126. +1 −1 tests/TestSupport/FakeFailingHealthCheck.php
21 changes: 17 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
labels:
- "dependencies"

- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "monthly"
labels:
- "dependencies"
55 changes: 24 additions & 31 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -2,39 +2,32 @@ name: dependabot-auto-merge
on: pull_request_target

permissions:
pull-requests: write
contents: write
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
dependabot:
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.actor == 'dependabot[bot]' }}
steps:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.6
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
compat-lookup: true
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge Dependabot PRs for semver-minor updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Auto-merge Dependabot PRs for semver-minor updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Auto-merge Dependabot PRs for semver-patch updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Auto-merge Dependabot PRs for Action major versions when compatibility is higher than 90%
if: ${{steps.metadata.outputs.package-ecosystem == 'github_actions' && steps.metadata.outputs.update-type == 'version-update:semver-major' && steps.metadata.outputs.compatibility-score >= 90}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Auto-merge Dependabot PRs for semver-patch updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
39 changes: 19 additions & 20 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
name: Check & fix styling

on: [push]
on:
push:
paths:
- '**.php'

permissions:
contents: write

jobs:
style:
php-code-styling:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Fix style
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php_cs.dist.php --allow-risky=yes
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@v2

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4.16.0
with:
commit_message: Fix styling
branch: ${{ steps.extract_branch.outputs.branch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling
8 changes: 5 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -5,22 +5,24 @@ on:
paths:
- '**.php'
- 'phpstan.neon.dist'
- '.github/workflows/phpstan.yml'

jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
91 changes: 51 additions & 40 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,64 @@
name: run-tests

on: [push, pull_request]
on:
push:
paths:
- '**.php'
- '.github/workflows/run-tests.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'

jobs:
tests:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1, 8.0]
laravel: [10.*, 9.*]
dependency-version: [prefer-lowest, prefer-stable]
php: [8.4, 8.3, 8.2]
laravel: [12.*, 11.*, 10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install SQLite 3
run: |
sudo apt-get update
sudo apt-get install sqlite3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Setup Problem Matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Execute tests
run: vendor/bin/pest
- name: Checkout code
uses: actions/checkout@v4

- name: Install SQLite 3
run: |
sudo apt-get update
sudo apt-get install sqlite3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
coverage: none

- name: Setup problem matchers
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 remove "larastan/larastan" --dev --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/pest --ci
4 changes: 2 additions & 2 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main

@@ -21,7 +21,7 @@ jobs:
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4.16.0
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
branch: main
commit_message: Update CHANGELOG
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@ composer.lock
vendor
.phpunit.result.cache
.php-cs-fixer.cache
.phpunit.cache
Loading