fix: 修改 runner 标签为 linux
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
|||||||
# 代码检查
|
# 代码检查
|
||||||
lint:
|
lint:
|
||||||
name: 代码检查
|
name: 代码检查
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
# 单元测试
|
# 单元测试
|
||||||
test:
|
test:
|
||||||
name: 单元测试
|
name: 单元测试
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
needs: lint
|
needs: lint
|
||||||
steps:
|
steps:
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
# 构建状态
|
# 构建状态
|
||||||
ci-status:
|
ci-status:
|
||||||
name: CI 状态
|
name: CI 状态
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
needs: [lint, test]
|
needs: [lint, test]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# 部署到测试环境
|
# 部署到测试环境
|
||||||
deploy-staging:
|
deploy-staging:
|
||||||
name: 部署测试环境
|
name: 部署测试环境
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
if: github.ref == 'refs/heads/develop'
|
if: github.ref == 'refs/heads/develop'
|
||||||
environment:
|
environment:
|
||||||
name: staging
|
name: staging
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
# 部署到正式环境
|
# 部署到正式环境
|
||||||
deploy-production:
|
deploy-production:
|
||||||
name: 部署正式环境
|
name: 部署正式环境
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
@@ -131,7 +131,7 @@ jobs:
|
|||||||
# 手动部署
|
# 手动部署
|
||||||
manual-deploy:
|
manual-deploy:
|
||||||
name: 手动部署
|
name: 手动部署
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
environment:
|
environment:
|
||||||
name: ${{ github.event.inputs.environment }}
|
name: ${{ github.event.inputs.environment }}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
# 快速测试
|
# 快速测试
|
||||||
quick-test:
|
quick-test:
|
||||||
name: 快速测试
|
name: 快速测试
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user