优化:将视图操作放在表后 #21
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: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: PHP-${{ matrix.php }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [7.4, "8.0", "8.1"] | |
env: | |
PHP_VERSION: ${{ matrix.php }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: pecl | |
extensions: > | |
curl, openssl, mbstring, zip | |
- name: Check Version | |
run: | | |
php -v | |
php -m | |
composer -V | |
- name: Prepare | |
run: | | |
composer update | |
- name: Test | |
run: | | |
composer test |