Skip to content

Update dependabot.yml #226

Update dependabot.yml

Update dependabot.yml #226

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- "master"
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
validate-master:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Validate Mergable"
run: git merge origin/master --no-commit --ff-only
phpunit-composer-latest:
needs: validate-master
runs-on: ${{ matrix.operating-system }}
strategy:
max-parallel: 3
fail-fast: true
matrix:
operating-system: ["ubuntu-latest"]
php-versions: ["8.0", "8.1", "8.2", "8.3"]
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
- name: "Composer State"
run: composer update --no-install --with-all-dependencies
- name: "Composer Name Hash"
id: composer-hash
uses: KEINOS/gh-action-hash-for-cache@main
with:
path: ./composer.lock
- name: "Caching"
id: cache-composer
uses: actions/cache@v3
with:
path: vendor
key: composer-default-${{ steps.composer-hash.outputs.hash }}
restore-keys: composer-default-${{ steps.composer-hash.outputs.hash }}
- name: "Install Dependencies"
if: ${{ steps.cache-composer.outputs.cache-hit != 'true' }}
run: composer install
- name: "Linux: Restore Vendor Executable"
run: chmod -R 0755 vendor
- name: "PHPUnit"
run: ./vendor/bin/phpunit
phpunit-composer-lowest:
needs: validate-master
runs-on: ${{ matrix.operating-system }}
strategy:
max-parallel: 3
fail-fast: true
matrix:
operating-system: ["ubuntu-latest"]
php-versions: ["8.0", "8.1", "8.2", "8.3"]
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
- name: "Composer State"
run: composer update --prefer-lowest --no-install --with-all-dependencies
- name: "Composer Name Hash"
id: composer-hash
uses: KEINOS/gh-action-hash-for-cache@main
with:
path: ./composer.lock
- name: "Caching"
id: cache-composer
uses: actions/cache@v3
with:
path: vendor
key: composer-lowest-${{ steps.composer-hash.outputs.hash }}
restore-keys: composer-lowest-${{ steps.composer-hash.outputs.hash }}
- name: "Install Dependencies"
if: ${{ steps.cache-composer.outputs.cache-hit != 'true' }}
run: composer install
- name: "Linux: Restore Vendor Executable"
if: matrix.operating-system == 'ubuntu-latest'
run: chmod -R 0755 vendor
- name: "PHPUnit"
run: ./vendor/bin/phpunit