Skip to content

Commit e43253c

Browse files
committed
test: 🧪 try example merge in the workflows to run it
1 parent 77f6b07 commit e43253c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/example-merge.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Example Merge Workflow
2+
on:
3+
push:
4+
branches: [main]
5+
6+
permissions:
7+
contents: write # Required for GitHub Pages upload
8+
9+
jobs:
10+
badges:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # Needed for git operations
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "20"
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run tests with coverage
26+
run: npm test
27+
28+
# Generate badges
29+
- name: Generate Badges
30+
uses: ./
31+
with:
32+
action: "badge-generator-action.yml"
33+
coverage-file: "coverage/coverage-summary.json"
34+
badges-dir: "badges"
35+
36+
# Upload badges to GitHub Pages
37+
- name: Upload Badges to GitHub Pages
38+
uses: ./
39+
with:
40+
action: "badge-upload-action.yml"
41+
badges-dir: "badges"
42+
pages-branch: "gh-pages"
43+
pages-badges-dir: "badges"
44+
generate-badges: "false" # Use existing badges

0 commit comments

Comments
 (0)