Skip to content

Commit d6a9539

Browse files
committed
chore: add github actions
1 parent 01a70b8 commit d6a9539

File tree

9 files changed

+1383
-5
lines changed

9 files changed

+1383
-5
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: awaiting triage, bug
6+
assignees: mtbitcr
7+
8+
---
9+
10+
**Internal Bug Number:** [Internal tracking code according to the bug tracking table]
11+
12+
**Priority:** [Low | Medium | High] *(Please select one)*
13+
14+
**Bug Type:** [Functional | Design | Both] *(Please select one)*
15+
16+
**Affected Component:** [Specific UI component name, e.g., "Accept Quote button"]
17+
18+
**Affected Screen/Flow:** [Specific screen or user flow where the bug occurs, e.g., "Home"]
19+
20+
**Current implementation:** [Concise, one-sentence description of the bug. E.g., "Issue button is unresponsive"]
21+
22+
**Expected Behavior:** [Describe what should be happening. E.g., "Clicking the Quote button should redirect the user to the "View Quotes" screen"]
23+
24+
**Screenshots/Videos:** [Attach screenshots or videos clearly demonstrating the bug. Annotate the screenshots to highlight the affected area. If possible, include screen recordings to show the steps to reproduce the bug.]
25+
26+
**Environment:**
27+
28+
* **Device:** [Desktop | Mobile | Tablet] *(Please select one)*
29+
* **OS:** [e.g., macOS Ventura, Windows 11, iOS 16, Android 13]
30+
* **Browser:** [e.g., Chrome 114, Safari 16, Firefox 110, Edge 114]
31+
* **Browser Version (if applicable):** [e.g., 114.0.5735.199]
32+
* **Resolution (if applicable):** [e.g., 1920x1080]
33+
* **App Version (if applicable):** [e.g., v1.2.3]
34+
35+
**Additional Context:** [Add any other relevant information, such as:
36+
* Impact of the bug
37+
* Workarounds (if any)
38+
* Frequency of occurrence (e.g., always, sometimes, rarely)
39+
* Related issues (if any)
40+
* User feedback (if any)]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: awaiting triage, enhancement, new feature
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
## 📝 Description
2+
3+
Please provide a brief summary of the changes in this pull request. What issue(s) does this PR address? What problem(s) does it solve?
4+
5+
Relates to #(issue-number)
6+
7+
---
8+
9+
## 📸 Screenshots/Screen record (if applicable)
10+
11+
If your changes include UI updates, please add before and after screenshots/screen records:
12+
13+
**Before:**
14+
[Attach screenshot/screen record]
15+
16+
**After:**
17+
[Attach screenshot/screen record]
18+
19+
---
20+
21+
## ✅ Checklist
22+
23+
Please ensure the following tasks are completed before requesting a review:
24+
25+
- [ ] My code adheres to the style guidelines of this project.
26+
- [ ] I have run `npm run lint` or the equivalent linting command.
27+
- [ ] I have added or updated tests (if applicable).
28+
- [ ] My changes have been tested thoroughly in different browsers/resolutions (if applicable).
29+
- [ ] I have updated the documentation (if applicable).
30+
- [ ] I have checked that there are no console errors or warnings.
31+
- [ ] I have verified that the application builds without errors.
32+
- [ ] I have tested responsiveness for mobile and desktop views (if applicable).
33+
34+
---
35+
36+
## 🚀 Changes Made
37+
38+
- **New Features:**
39+
- [Describe any new features added.]
40+
41+
- **Bug Fixes:**
42+
- [List the bugs fixed.]
43+
44+
- **Refactoring:**
45+
- [Highlight refactored code, if any.]
46+
47+
- **Other Changes:**
48+
- [Describe additional changes not covered above.]
49+
50+
---
51+
52+
## 💡 How to Test
53+
54+
Please provide clear instructions on how reviewers can test your changes:
55+
56+
1. [Step 1]
57+
2. [Step 2]
58+
3. [Step 3]
59+
60+
---
61+
62+
## 🤝 Related Issues
63+
64+
List any related issues, pull requests, or discussions:
65+
66+
- #123
67+
- #456
68+
69+
---
70+
71+
## 🔗 Additional Context (optional)
72+
73+
Add any other context or information that might be useful for reviewers:
74+
75+
[Additional notes or links]
76+
77+
---
78+
79+
## 📄 Relevant Documentation (optional)
80+
81+
Provide links to relevant documentation that reviewers may need:
82+
83+
- [Link to related documentation]
84+
85+
---
86+
87+
## 📋 Review Guidelines
88+
89+
Please focus on the following while reviewing:
90+
91+
- [ ] Does the code follow the repository's contribution guidelines?
92+
- [ ] Are there any potential bugs or performance issues?
93+
- [ ] Is the UI consistent with the overall design?
94+
- [ ] Are there any typos or grammatical errors in the code or comments?

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: ['v22.11.0']
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node.js (${{ matrix.node-version }})
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Lint
29+
run: npm run lint
30+
31+
- name: Run tests and generate coverage
32+
run: npm run test -- --coverage
33+
34+
- name: Build
35+
run: npm run build

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ node_modules
1111
dist
1212
dist-ssr
1313
*.local
14+
coverage/
1415

1516
# Editor directories and files
1617
.vscode/*
@@ -22,3 +23,8 @@ dist-ssr
2223
*.njsproj
2324
*.sln
2425
*.sw?
26+
27+
# generated tsbuildinfo files
28+
tsconfig.app.tsbuildinfo
29+
tsconfig.node.tsbuildinfo
30+
*storybook.log

0 commit comments

Comments
 (0)