Update AUTHORS #175
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
| # This file is part of the sshilko/php-sql-mydb package. | |
| # | |
| # (c) Sergei Shilko <contact@sshilko.com> | |
| # | |
| # MIT License | |
| # | |
| # For the full copyright and license information, please view the LICENSE | |
| # file that was distributed with this source code. | |
| # @license https://opensource.org/licenses/mit-license.php MIT | |
| name: 8.1 PHPCS | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: PHP setup | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| extensions: simplexml,dom,xml,intl,ast,mysql,xdebug | |
| coverage: xdebug | |
| # https://github.com/pre-commit/action | |
| - name: Pre-commit dependencies | |
| uses: actions/setup-python@v3 | |
| - run: pip install pre-commit | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php81-${{ hashFiles('composer.lock') }}-composer-dev | |
| - name: PHP Version | |
| run: php --version | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress --optimize-autoloader | |
| # Docs: https://github.com/squizlabs/PHP_CodeSniffer | |
| - name: Run PHPCodeSniffer github.com/squizlabs/PHP_CodeSniffer | |
| run: composer app-phpcs | |
| # https://github.com/actions/upload-artifact | |
| - name: Upload PHPCS artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: phpcs-output | |
| path: | | |
| build/tmp/phpcs.txt | |
| retention-days: 1 | |
| pages: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| permissions: write-all | |
| steps: | |
| # https://github.com/actions/checkout | |
| - name: Checkout pages branch | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: pages | |
| # https://github.com/marketplace/actions/download-a-build-artifact | |
| - name: Download all PHPCS artifacts | |
| uses: actions/download-artifact@v3 | |
| with: | |
| name: phpcs-output | |
| path: php/phpcs | |
| - uses: nick-fields/retry@v2 | |
| name: Commit php/phpcs | |
| continue-on-error: true | |
| with: | |
| timeout_seconds: 20 | |
| max_attempts: 3 | |
| retry_on: error | |
| command: | | |
| git status | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git pull | |
| git add php/phpcs/phpcs.txt | |
| git commit -m "generated phpcs docs from revision ${GITHUB_SHA::7}" | |
| git push |