2 Commits

Author SHA1 Message Date
606d420a4b 更新 .gitea/workflows/test_php.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
Gitea Actions / run-php (push) Successful in 1m23s
2025-12-08 08:59:28 +08:00
0512c5262d 添加 .gitea/workflows/test_php.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 20s
Gitea Actions / run-php (push) Failing after 1m17s
Signed-off-by: a1012112796 <1012112796@qq.com>
2025-12-08 08:56:05 +08:00

View File

@@ -0,0 +1,20 @@
name: Gitea Actions
on: [push]
jobs:
run-php:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2' # adapte si besoin (7.4, 8.0, etc.)
- run: php -r "echo 'Hello, world.';"
- run: php -r "phpinfo();"
- run: php -r "print('Hello, world.');"
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."