test: Add test workflow for Gitea Actions Runner
This commit is contained in:
38
.gitea/workflows/test-runner.yml
Normal file
38
.gitea/workflows/test-runner.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Test Runner
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- staging
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test-basic:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Test basic runner
|
||||
run: |
|
||||
echo "✅ Runner is working!"
|
||||
echo "Runner OS: $(uname -a)"
|
||||
echo "Docker version: $(docker --version)"
|
||||
echo "Current directory: $(pwd)"
|
||||
echo "Git branch: $(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
test-php:
|
||||
runs-on: php-ci
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Test PHP environment
|
||||
run: |
|
||||
echo "✅ PHP Runner is working!"
|
||||
php -v
|
||||
composer --version
|
||||
echo "PHP Extensions:"
|
||||
php -m | grep -E "(pdo|redis|zip|gd|mbstring)"
|
||||
|
||||
Reference in New Issue
Block a user