chore: Add dependabot.yml #42
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| pull_request: | |
| jobs: | |
| lint: | |
| strategy: | |
| matrix: | |
| operating-system: [ubuntu-latest] | |
| php-versions: ["7.2"] | |
| runs-on: ${{ matrix.operating-system }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: none | |
| - name: Get Composer Cache Directory | |
| id: composer-cache-dir | |
| run: | | |
| echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ steps.composer-cache-dir.outputs.dir }} | |
| key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer- | |
| - name: Install dependencies | |
| run: composer install --no-progress | |
| - name: coding standard | |
| run: vendor/bin/phpcs | |
| - name: Show PHPStan version | |
| run: vendor/bin/phpstan --version | |
| - name: phpstan | |
| run: vendor/bin/phpstan analyse | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| operating-system: [ubuntu-latest] | |
| php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"] | |
| runs-on: ${{ matrix.operating-system }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: none | |
| - name: Get Composer Cache Directory | |
| id: composer-cache-dir | |
| run: | | |
| echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ steps.composer-cache-dir.outputs.dir }} | |
| key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer- | |
| - name: Install dependencies | |
| run: composer install --no-progress | |
| - name: Show PHPUnit version | |
| run: vendor/bin/phpunit --version | |
| - name: phpunit | |
| run: vendor/bin/phpunit |