optimized(docs): 升级优化文档 #29
Workflow file for this run
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: Coding Style | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
php_cs_fixer: | |
name: php_cs_fixer | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
- name: Install Dependencies | |
run: composer install --no-progress | |
- name: Run PHP-CS-Fixer | |
run: composer cs-fix | |
php_stan: | |
name: php_stan-php${{ matrix.php-version }} | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ ubuntu-latest ] | |
php-version: | |
- 8.0 | |
- 8.1 | |
- 8.2 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- name: Install Dependencies | |
run: composer install --no-progress | |
- name: Run PHP-Stan | |
run: composer analyse |