pay/.github/workflows/coverage.yml
Hatim 747806ee09
fix: 修复商家转账参数缺失的问题 (#977)
---------

Co-authored-by: yansongda <me@yansongda.cn>
2024-05-08 23:13:04 +08:00

29 lines
679 B
YAML

name: Code Coverage
on:
push:
branches:
- master
pull_request:
jobs:
coverage:
name: Code Coverage
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: openssl
coverage: xdebug
- name: Install Dependencies
run: composer require hyperf/pimple
- name: Run Coverage
run: vendor/bin/phpunit --coverage-clover coverage.xml
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}