Skip to content

Commit 7a2c72c

Browse files
committed
fix: restore icons in CI/CD workflow step names
1 parent 5d6f12c commit 7a2c72c

3 files changed

Lines changed: 71 additions & 71 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ env:
1313

1414
jobs:
1515
test:
16-
name: Verify Packages
16+
name: 🧪 Verify Packages
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- name: Checkout code
20+
- name: 📥 Checkout code
2121
uses: actions/checkout@v5
2222

23-
- name: Setup Node.js
23+
- name: 🔧 Setup Node.js
2424
uses: actions/setup-node@v6
2525
with:
2626
node-version: ${{ env.NODE_VERSION }}
2727
cache: 'npm'
2828

29-
- name: Install dependencies
29+
- name: 📦 Install dependencies
3030
run: npm ci
3131

32-
- name: Verify all packages
32+
- name: Verify all packages
3333
run: npm run verify
3434

35-
- name: All checks passed
36-
run: echo "All CI checks passed successfully!"
35+
- name: All checks passed
36+
run: echo "🎉 All CI checks passed successfully!"

.github/workflows/pr-validation.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,86 +17,86 @@ env:
1717

1818
jobs:
1919
validate:
20-
name: Validate Pull Request
20+
name: 🔍 Validate Pull Request
2121
runs-on: ubuntu-latest
2222
outputs:
2323
validation-result: ${{ steps.validation-summary.outputs.result }}
2424
pr-comment-body: ${{ steps.validation-summary.outputs.comment-body }}
2525

2626
steps:
27-
- name: Checkout code
27+
- name: 📥 Checkout code
2828
uses: actions/checkout@v5
2929

30-
- name: Setup Node.js
30+
- name: 🔧 Setup Node.js
3131
uses: actions/setup-node@v6
3232
with:
3333
node-version: ${{ env.NODE_VERSION }}
3434
cache: 'npm'
3535

36-
- name: Install dependencies
36+
- name: 📦 Install dependencies
3737
run: npm ci
3838

39-
- name: Type check
39+
- name: 🔍 Type check
4040
id: type-check
4141
run: npm run type-check
4242

43-
- name: Lint
43+
- name: 🎨 Lint
4444
id: lint
4545
run: npm run lint
4646

47-
- name: Format check
47+
- name: 🎨 Format check
4848
id: format-check
4949
run: npm run format:check
5050

51-
- name: Test
51+
- name: 🧪 Test
5252
id: test
5353
run: npm run test
5454

55-
- name: Test Coverage
55+
- name: 📊 Test Coverage
5656
id: coverage
5757
run: npm run test:coverage
5858

59-
- name: Build
59+
- name: 🏗️ Build
6060
id: build
6161
run: npm run build
6262

63-
- name: Validation Summary
63+
- name: 📊 Validation Summary
6464
id: validation-summary
6565
if: always()
6666
run: |
6767
echo "result=${{ job.status }}" >> $GITHUB_OUTPUT
6868
6969
cat << 'EOF' >> $GITHUB_OUTPUT
7070
comment-body<<COMMENT_EOF
71-
## Pull Request Validation Results
71+
## 🔍 Pull Request Validation Results
7272
7373
| Step | Status |
7474
|------|--------|
75-
| Type Check | ${{ steps.type-check.outcome == 'success' && 'Passed' || 'Failed' }} |
76-
| Lint | ${{ steps.lint.outcome == 'success' && 'Passed' || 'Failed' }} |
77-
| Format | ${{ steps.format-check.outcome == 'success' && 'Passed' || 'Failed' }} |
78-
| Build | ${{ steps.build.outcome == 'success' && 'Passed' || 'Failed' }} |
79-
| Tests | ${{ steps.test.outcome == 'success' && 'Passed' || 'Failed' }} |
80-
| Coverage | ${{ steps.coverage.outcome == 'success' && 'Passed' || 'Failed' }} |
81-
82-
**Overall:** ${{ job.status == 'success' && 'All checks passed!' || 'Some checks failed' }}
75+
| 🔍 Type Check | ${{ steps.type-check.outcome == 'success' && 'Passed' || 'Failed' }} |
76+
| 🎨 Lint | ${{ steps.lint.outcome == 'success' && 'Passed' || 'Failed' }} |
77+
| 🎨 Format | ${{ steps.format-check.outcome == 'success' && 'Passed' || 'Failed' }} |
78+
| 🏗️ Build | ${{ steps.build.outcome == 'success' && 'Passed' || 'Failed' }} |
79+
| 🧪 Tests | ${{ steps.test.outcome == 'success' && 'Passed' || 'Failed' }} |
80+
| 📊 Coverage | ${{ steps.coverage.outcome == 'success' && 'Passed' || 'Failed' }} |
81+
82+
**Overall:** ${{ job.status == 'success' && 'All checks passed!' || 'Some checks failed' }}
8383
COMMENT_EOF
8484
EOF
8585
8686
post-comment:
87-
name: Post PR Comment
87+
name: 💬 Post PR Comment
8888
needs: [validate]
8989
if: always() && github.event_name == 'pull_request'
9090
runs-on: ubuntu-latest
9191
steps:
92-
- name: Post PR comment
92+
- name: 📊 Post PR comment
9393
uses: actions/github-script@v8
9494
with:
9595
script: |
9696
const validationBody = `${{ needs.validate.outputs.pr-comment-body }}`;
9797
const timestamp = new Date().toISOString();
9898
99-
const finalBody = validationBody + `\n\n[View workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})\n\n---\nGenerated at: \`${timestamp}\``;
99+
const finalBody = validationBody + `\n\n📋 [View workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})\n\n---\n⏰ Generated at: \`${timestamp}\``;
100100
101101
// Find existing comment from this workflow
102102
const comments = await github.rest.issues.listComments({
@@ -105,7 +105,7 @@ jobs:
105105
issue_number: context.issue.number,
106106
});
107107
108-
const workflowSignature = '[View workflow]';
108+
const workflowSignature = '📋 [View workflow]';
109109
const existingComment = comments.data
110110
.reverse()
111111
.find(comment => comment.body.includes(workflowSignature) && comment.user.login === 'github-actions[bot]');

.github/workflows/publish.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ env:
1616

1717
jobs:
1818
detect-changes:
19-
name: Detect Version Changes
19+
name: 🔍 Detect Version Changes
2020
runs-on: ubuntu-latest
2121
outputs:
2222
packages: ${{ steps.detect.outputs.packages }}
2323
has-changes: ${{ steps.detect.outputs.has-changes }}
2424

2525
steps:
26-
- name: Checkout code
26+
- name: 📥 Checkout code
2727
uses: actions/checkout@v5
2828

29-
- name: Setup Node.js
29+
- name: 🔧 Setup Node.js
3030
uses: actions/setup-node@v6
3131
with:
3232
node-version: ${{ env.NODE_VERSION }}
3333
cache: "npm"
3434

35-
- name: Install dependencies
35+
- name: 📦 Install dependencies
3636
run: npm ci
3737

38-
- name: Detect changed package versions
38+
- name: 🔍 Detect changed package versions
3939
id: detect
4040
run: |
4141
# Function to get package info
@@ -87,13 +87,13 @@ jobs:
8787
8888
IFS='|' read -r dir name version <<< "$pkg_info"
8989
90-
echo "Checking ${name}@${version}..."
90+
echo "📦 Checking ${name}@${version}..."
9191
9292
# Check if this version exists on npm
9393
if version_exists_on_npm "$name" "$version"; then
94-
echo "Version ${version} already published for ${name}"
94+
echo "⏭️ Version ${version} already published for ${name}"
9595
else
96-
echo "New version detected: ${name}@${version}"
96+
echo "New version detected: ${name}@${version}"
9797
changed_packages+=("{\"name\":\"${name}\",\"version\":\"${version}\",\"dir\":\"${dir}\"}")
9898
fi
9999
done
@@ -102,17 +102,17 @@ jobs:
102102
if [ ${#changed_packages[@]} -eq 0 ]; then
103103
echo "has-changes=false" >> $GITHUB_OUTPUT
104104
echo "packages=[]" >> $GITHUB_OUTPUT
105-
echo "No version changes detected"
105+
echo "ℹ️ No version changes detected"
106106
else
107107
echo "has-changes=true" >> $GITHUB_OUTPUT
108108
packages_json=$(printf '%s\n' "${changed_packages[@]}" | jq -s -c '.')
109109
echo "packages=${packages_json}" >> $GITHUB_OUTPUT
110-
echo "Packages to publish:"
110+
echo "🎯 Packages to publish:"
111111
echo "${packages_json}" | jq '.'
112112
fi
113113
114114
verify:
115-
name: Verify ${{ matrix.package.name }}@${{ matrix.package.version }}
115+
name: Verify ${{ matrix.package.name }}@${{ matrix.package.version }}
116116
needs: [detect-changes]
117117
if: needs.detect-changes.outputs.has-changes == 'true'
118118
runs-on: ubuntu-latest
@@ -122,33 +122,33 @@ jobs:
122122
fail-fast: true
123123

124124
steps:
125-
- name: Checkout code
125+
- name: 📥 Checkout code
126126
uses: actions/checkout@v5
127127

128-
- name: Setup Node.js
128+
- name: 🔧 Setup Node.js
129129
uses: actions/setup-node@v6
130130
with:
131131
node-version: ${{ env.NODE_VERSION }}
132132
cache: "npm"
133133

134-
- name: Install dependencies
134+
- name: 📦 Install dependencies
135135
run: npm ci
136136

137-
- name: Build all workspace packages
137+
- name: 🏗️ Build all workspace packages
138138
run: npm run build
139139

140-
- name: Run verification
140+
- name: Run verification
141141
working-directory: ${{ matrix.package.dir }}
142142
run: |
143-
echo "Verifying ${{ matrix.package.name }}@${{ matrix.package.version }}"
143+
echo "🔍 Verifying ${{ matrix.package.name }}@${{ matrix.package.version }}"
144144
npm run verify
145145
146-
- name: Verification passed
146+
- name: Verification passed
147147
run: |
148-
echo "${{ matrix.package.name }}@${{ matrix.package.version }} verified successfully" >> $GITHUB_STEP_SUMMARY
148+
echo "${{ matrix.package.name }}@${{ matrix.package.version }} verified successfully" >> $GITHUB_STEP_SUMMARY
149149
150150
publish:
151-
name: Publish ${{ matrix.package.name }}@${{ matrix.package.version }}
151+
name: 📤 Publish ${{ matrix.package.name }}@${{ matrix.package.version }}
152152
needs: [detect-changes, verify]
153153
if: needs.detect-changes.outputs.has-changes == 'true' && needs.verify.result == 'success'
154154
runs-on: ubuntu-latest
@@ -159,31 +159,31 @@ jobs:
159159
fail-fast: true
160160

161161
steps:
162-
- name: Checkout code
162+
- name: 📥 Checkout code
163163
uses: actions/checkout@v5
164164

165-
- name: Setup Node.js
165+
- name: 🔧 Setup Node.js
166166
uses: actions/setup-node@v6
167167
with:
168168
node-version: ${{ env.NODE_VERSION }}
169169
cache: "npm"
170170
registry-url: "https://registry.npmjs.org"
171171

172-
- name: Install dependencies
172+
- name: 📦 Install dependencies
173173
run: npm ci
174174

175-
- name: Build all workspace packages
175+
- name: 🏗️ Build all workspace packages
176176
run: npm run build
177177

178-
- name: Publish to npm
178+
- name: 📤 Publish to npm
179179
working-directory: ${{ matrix.package.dir }}
180180
env:
181181
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
182182
run: |
183-
echo "Publishing ${{ matrix.package.name }}@${{ matrix.package.version }}"
183+
echo "📤 Publishing ${{ matrix.package.name }}@${{ matrix.package.version }}"
184184
npm publish --access public --provenance
185185
186-
- name: Create git tag
186+
- name: 🏷️ Create git tag
187187
run: |
188188
git config --global user.name "github-actions[bot]"
189189
git config --global user.email "github-actions[bot]@users.noreply.github.com"
@@ -195,33 +195,33 @@ jobs:
195195
git tag -a "${TAG_NAME}" -m "Release ${{ matrix.package.name }}@${{ matrix.package.version }}"
196196
git push origin "${TAG_NAME}"
197197
198-
- name: Published successfully
198+
- name: Published successfully
199199
run: |
200-
echo "Successfully published ${{ matrix.package.name }}@${{ matrix.package.version }}" >> $GITHUB_STEP_SUMMARY
201-
echo "Package URL: https://www.npmjs.com/package/${{ matrix.package.name }}/v/${{ matrix.package.version }}" >> $GITHUB_STEP_SUMMARY
200+
echo "🎉 Successfully published ${{ matrix.package.name }}@${{ matrix.package.version }}" >> $GITHUB_STEP_SUMMARY
201+
echo "📦 Package URL: https://www.npmjs.com/package/${{ matrix.package.name }}/v/${{ matrix.package.version }}" >> $GITHUB_STEP_SUMMARY
202202
203203
summary:
204-
name: Publish Summary
204+
name: 📋 Publish Summary
205205
needs: [detect-changes, verify, publish]
206206
if: always() && needs.detect-changes.outputs.has-changes == 'true'
207207
runs-on: ubuntu-latest
208208

209209
steps:
210-
- name: Create summary
210+
- name: 📊 Create summary
211211
run: |
212-
echo "## Package Publishing Summary" >> $GITHUB_STEP_SUMMARY
212+
echo "## 📦 Package Publishing Summary" >> $GITHUB_STEP_SUMMARY
213213
echo "" >> $GITHUB_STEP_SUMMARY
214214
215215
if [ "${{ needs.verify.result }}" != "success" ]; then
216-
echo "**Verification failed - packages not published**" >> $GITHUB_STEP_SUMMARY
216+
echo "**Verification failed - packages not published**" >> $GITHUB_STEP_SUMMARY
217217
echo "" >> $GITHUB_STEP_SUMMARY
218218
echo "Please fix verification errors and try again." >> $GITHUB_STEP_SUMMARY
219219
elif [ "${{ needs.publish.result }}" == "success" ]; then
220-
echo "**All packages published successfully!**" >> $GITHUB_STEP_SUMMARY
220+
echo "**All packages published successfully!**" >> $GITHUB_STEP_SUMMARY
221221
elif [ "${{ needs.publish.result }}" == "skipped" ]; then
222-
echo "**Publishing skipped - verification failed**" >> $GITHUB_STEP_SUMMARY
222+
echo "⏭️ **Publishing skipped - verification failed**" >> $GITHUB_STEP_SUMMARY
223223
else
224-
echo "**Some packages failed to publish**" >> $GITHUB_STEP_SUMMARY
224+
echo "⚠️ **Some packages failed to publish**" >> $GITHUB_STEP_SUMMARY
225225
fi
226226
227227
echo "" >> $GITHUB_STEP_SUMMARY
@@ -231,9 +231,9 @@ jobs:
231231
packages='${{ needs.detect-changes.outputs.packages }}'
232232
233233
if [ "${{ needs.verify.result }}" == "success" ] && [ "${{ needs.publish.result }}" == "success" ]; then
234-
echo "$packages" | jq -r '.[] | "- **\(.name)** version \(.version) - Published"' >> $GITHUB_STEP_SUMMARY
234+
echo "$packages" | jq -r '.[] | "- **\(.name)** version \(.version) - Published"' >> $GITHUB_STEP_SUMMARY
235235
elif [ "${{ needs.verify.result }}" != "success" ]; then
236-
echo "$packages" | jq -r '.[] | "- **\(.name)** version \(.version) - Verification failed"' >> $GITHUB_STEP_SUMMARY
236+
echo "$packages" | jq -r '.[] | "- **\(.name)** version \(.version) - Verification failed"' >> $GITHUB_STEP_SUMMARY
237237
else
238-
echo "$packages" | jq -r '.[] | "- **\(.name)** version \(.version) - Skipped"' >> $GITHUB_STEP_SUMMARY
238+
echo "$packages" | jq -r '.[] | "- ⏭️ **\(.name)** version \(.version) - Skipped"' >> $GITHUB_STEP_SUMMARY
239239
fi

0 commit comments

Comments
 (0)