Skip to content

ci. 在 push 时自动规范 PHP 代码,保留原来的检查以兼顾 pr #524

ci. 在 push 时自动规范 PHP 代码,保留原来的检查以兼顾 pr

ci. 在 push 时自动规范 PHP 代码,保留原来的检查以兼顾 pr #524

Workflow file for this run

name: Run PHPUnit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
phpunit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: Execute tests
run: vendor/bin/phpunit tests/phpunit --verbose