Skip to content

CI

CI #214

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: '0 10 * * 5'
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
- 8.5
composer_args:
- '--prefer-stable'
- '--prefer-stable --prefer-lowest'
name: PHP ${{ matrix.php }} ${{ matrix.composer_args }}
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Build
env:
COMPOSER_ARGS: ${{ matrix.composer_args }}
run: composer update --no-interaction --no-progress --prefer-dist $COMPOSER_ARGS
- name: Check Code Style
run: vendor/bin/phpcs
dependabot:
runs-on: ubuntu-latest
needs: [tests]
permissions:
pull-requests: write
contents: write
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
steps:
- id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- run: |
gh pr review --approve "$PR_URL"
gh pr merge --squash --auto "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}