Skip to content

Commit 6b2e9ea

Browse files
Add CI workflows for multi-OS compatibility testing and code quality checks
1 parent 4e49cb7 commit 6b2e9ea

File tree

5 files changed

+1157
-0
lines changed

5 files changed

+1157
-0
lines changed

.github/workflows/badge.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Update Badges
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
schedule:
7+
- cron: '0 0 * * *' # Daily at midnight
8+
9+
jobs:
10+
update-badges:
11+
name: Update Repository Badges
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Generate badge information
18+
run: |
19+
echo "Repository badges can be added to README.md:" > badges_info.md
20+
echo "" >> badges_info.md
21+
echo "## Available Badges" >> badges_info.md
22+
echo "" >> badges_info.md
23+
echo "### Test Status" >> badges_info.md
24+
echo '![Test Status](https://github.com/teslaproduuction/TLScript/workflows/Test%20cert_manager.sh/badge.svg)' >> badges_info.md
25+
echo "" >> badges_info.md
26+
echo "### Multi-OS Compatibility" >> badges_info.md
27+
echo '![Multi-OS Test](https://github.com/teslaproduuction/TLScript/workflows/Multi-OS%20Compatibility%20Test/badge.svg)' >> badges_info.md
28+
echo "" >> badges_info.md
29+
echo "### Code Quality" >> badges_info.md
30+
echo '![Code Quality](https://github.com/teslaproduuction/TLScript/workflows/Code%20Quality%20&%20Security/badge.svg)' >> badges_info.md
31+
echo "" >> badges_info.md
32+
echo "### Release" >> badges_info.md
33+
echo '![Release](https://github.com/teslaproduuction/TLScript/workflows/Release%20Workflow/badge.svg)' >> badges_info.md
34+
echo "" >> badges_info.md
35+
echo "### Latest Release" >> badges_info.md
36+
echo '![Latest Release](https://img.shields.io/github/v/release/teslaproduuction/TLScript)' >> badges_info.md
37+
echo "" >> badges_info.md
38+
echo "### License" >> badges_info.md
39+
echo '![License](https://img.shields.io/github/license/teslaproduuction/TLScript)' >> badges_info.md
40+
echo "" >> badges_info.md
41+
echo "## Markdown for README.md" >> badges_info.md
42+
echo "" >> badges_info.md
43+
echo 'Add these badges to the top of your README.md:' >> badges_info.md
44+
echo "" >> badges_info.md
45+
echo '```markdown' >> badges_info.md
46+
echo '[![Test Status](https://github.com/teslaproduuction/TLScript/workflows/Test%20cert_manager.sh/badge.svg)](https://github.com/teslaproduuction/TLScript/actions/workflows/test.yml)' >> badges_info.md
47+
echo '[![Multi-OS Test](https://github.com/teslaproduuction/TLScript/workflows/Multi-OS%20Compatibility%20Test/badge.svg)](https://github.com/teslaproduuction/TLScript/actions/workflows/multi-os-test.yml)' >> badges_info.md
48+
echo '[![Code Quality](https://github.com/teslaproduuction/TLScript/workflows/Code%20Quality%20&%20Security/badge.svg)](https://github.com/teslaproduuction/TLScript/actions/workflows/code-quality.yml)' >> badges_info.md
49+
echo '[![Latest Release](https://img.shields.io/github/v/release/teslaproduuction/TLScript)](https://github.com/teslaproduuction/TLScript/releases)' >> badges_info.md
50+
echo '[![License](https://img.shields.io/github/license/teslaproduuction/TLScript)](LICENSE)' >> badges_info.md
51+
echo '```' >> badges_info.md
52+
53+
cat badges_info.md
54+
55+
- name: Upload badge information
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: badges-info
59+
path: badges_info.md
60+
retention-days: 7

0 commit comments

Comments
 (0)