- 创建 Dockerfile 包含 PHP + Node.js + Git + SSH - 所有 workflow 使用本地镜像避免拉取延迟 - 需要先构建镜像: docker build -t gitea-runner-php:latest .
This commit is contained in:
@@ -12,11 +12,10 @@ jobs:
|
||||
name: 快速测试
|
||||
runs-on: linux
|
||||
container:
|
||||
image: composer:latest
|
||||
image: gitea-runner-php:latest
|
||||
steps:
|
||||
- name: 检出代码
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
@@ -24,6 +23,7 @@ jobs:
|
||||
run: |
|
||||
echo "PHP: $(php -v | head -1)"
|
||||
echo "Composer: $(composer --version)"
|
||||
echo "Node: $(node -v)"
|
||||
|
||||
- name: PHP 语法检查
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user