ci: Add dependabot (#160) #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Static analysis" | |
on: | |
push: | |
branches: | |
- "main" | |
- "master" | |
pull_request: null | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
static-analysis: | |
runs-on: "ubuntu-latest" | |
name: "PHPStan on PHP ${{ matrix.php }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
php: | |
- "8.3" | |
steps: | |
- name: "Check out repository code" | |
uses: "actions/checkout@v3" | |
- name: "Setup PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php }}" | |
tools: "composer" | |
- name: "Install Composer dependencies" | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "highest" | |
- name: "Perform static analysis" | |
run: "make phpstan" |