XF_Index/.gitea/workflows/laravel.yaml
XiaoLFeng efc05e0c5a
All checks were successful
Tests / PHP (8.1) (pull_request) Successful in 1m52s
Tests / PHP (8.2) (pull_request) Successful in 1m46s
更新Unit
2023-06-29 22:00:20 +08:00

48 lines
893 B
YAML

name: Tests
on:
push:
branches:
- master
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
tests:
runs-on: centos
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
name: PHP
steps:
- name: 检查代码
uses: actions/checkout@v3
- name: 配置PHP
uses: XiaoLFeng/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: 安装PHP Composer依赖
run: composer install --prefer-dist --no-interaction --no-progress
- name: 复制配置文件
run: cp .env.example .env
- name: 生成应用程序密钥
run: php artisan key:generate
# - name: Execute tests
# run: /phpunit