XF_Index/.gitea/workflows/laravel.yaml
XiaoLFeng 30150f5db0
Some checks failed
Tests / PHP (pull_request) Failing after 1m11s
更新自动化规则
Signed-off-by: XiaoLFeng <gm@x-lf.cn>
2023-06-30 13:22:57 +08:00

40 lines
685 B
YAML

name: Tests
on:
push:
branches:
- master
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
tests:
runs-on: centos
name: PHP
steps:
- name: '检查代码'
uses: https://github.com/actions/checkout@v3
- name: '安装PHP'
uses: XiaoLFeng/setup-php@v2
with:
coverage: none
tools: phpmd
- name: '检查命名问题'
run: phpmd ./ text naming
- name: '检查设计问题'
run: phpmd ./ text naming design
- name: '检查代码规模是否过大'
run: phpmd ./ text codesize
continue-on-error: true