From 0512c5262d77141d0d62427ec038618acbe4f606 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Mon, 8 Dec 2025 08:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/test=5Fph?= =?UTF-8?q?p.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: a1012112796 <1012112796@qq.com> --- .gitea/workflows/test_php.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/test_php.yml diff --git a/.gitea/workflows/test_php.yml b/.gitea/workflows/test_php.yml new file mode 100644 index 0000000..0bd6f52 --- /dev/null +++ b/.gitea/workflows/test_php.yml @@ -0,0 +1,22 @@ +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.) + - name: Run run.php + run: php -d display_errors=1 -f run.php + - 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 }}." \ No newline at end of file