ci: 统一 workflow 步骤名称为英文

This commit is contained in:
hhs
2026-06-13 11:45:08 +08:00
parent 3d7d7d190c
commit 8ce5c02730
3 changed files with 20 additions and 13 deletions

View File

@@ -14,15 +14,16 @@ jobs:
run: run:
working-directory: backend working-directory: backend
steps: steps:
- name: Install Node.js (for checkout action) - name: Setup Node.js
run: | run: |
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
apk add --no-cache nodejs apk add --no-cache nodejs
working-directory: / working-directory: /
- uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4" - name: Checkout
uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4"
- name: Download dependencies - name: Download Dependencies
run: go mod download run: go mod download
env: env:
GOPROXY: https://goproxy.cn,direct GOPROXY: https://goproxy.cn,direct

View File

@@ -14,13 +14,14 @@ jobs:
run: run:
working-directory: frontend working-directory: frontend
steps: steps:
- uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4" - name: Checkout
uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4"
- name: Install dependencies - name: Install Dependencies
run: npm ci run: npm ci
- name: Lint - name: Lint
run: npm run lint run: npm run lint
- name: Type check & Build - name: Type Check & Build
run: npm run build run: npm run build

View File

@@ -8,12 +8,17 @@ jobs:
runs-on: aliyun runs-on: aliyun
container: node:22-alpine container: node:22-alpine
steps: steps:
- run: echo "🎉 Triggered by ${{ gitea.event_name }} event" - name: Event Info
- run: echo "🌿 Branch: ${{ gitea.ref }}, Repo: ${{ gitea.repository }}" run: echo "🎉 Triggered by ${{ gitea.event_name }} event"
- run: echo "🐧 Running on ${{ runner.os }}, workspace: ${{ gitea.workspace }}" - name: Branch Info
- name: Check out repository code run: echo "🌿 Branch: ${{ gitea.ref }}, Repo: ${{ gitea.repository }}"
- name: Runner Info
run: echo "🐧 Running on ${{ runner.os }}, workspace: ${{ gitea.workspace }}"
- name: Checkout
uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4" uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4"
- run: echo "💡 ${{ gitea.repository }} has been cloned to the runner" - name: Checkout Done
- name: List files in the repository run: echo "💡 ${{ gitea.repository }} has been cloned to the runner"
- name: List Files
run: ls ${{ gitea.workspace }} run: ls ${{ gitea.workspace }}
- run: echo "🍏 Job status: ${{ job.status }}" - name: Job Status
run: echo "🍏 Job status: ${{ job.status }}"