Skip to content

Commit 736d995

Browse files
author
LindenTech IT Consulting
authored
Merge pull request #10 from lindentechde/moduler-improvements
Moduler improvements
2 parents 356f891 + 5129deb commit 736d995

115 files changed

Lines changed: 23624 additions & 1025 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 66 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,82 @@
1-
# ⚠️ Pull Requests Not Accepted
1+
# 🎉 Pull Request
22

3-
## Proprietary Software Notice
3+
## Description
44

5-
**SomonScript is proprietary software** owned by LindenTech IT Consulting.
5+
<!-- Provide a clear and concise description of your changes -->
66

7-
### 🚫 **Code Contributions Are Not Permitted**
7+
## Type of Change
88

9-
This repository **does not accept pull requests** due to our proprietary license
10-
terms. The following activities are prohibited:
9+
<!-- Please check the relevant option(s) -->
1110

12-
-**Forking** or redistributing the SomonScript codebase
13-
-**Modifying** the SomonScript source code or creating derivative works
14-
-**Contributing code changes** or pull requests to the repository
15-
-**Creating competing** programming languages based on SomonScript
11+
- [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
12+
- [ ] ✨ New feature (non-breaking change which adds functionality)
13+
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality
14+
to not work as expected)
15+
- [ ] 📚 Documentation update
16+
- [ ] 🔧 Configuration/build changes
17+
- [ ] ✅ Test improvements
18+
- [ ] ♻️ Code refactoring (no functional changes)
1619

17-
### **How to Report Issues Instead**
20+
## Related Issue
1821

19-
If you've encountered a bug or have a feature suggestion, please:
22+
<!-- Link to the issue this PR addresses, if applicable -->
2023

21-
1. **🐛 Report bugs** via
22-
[GitHub Issues](https://github.com/lindentechde/Somon-Script/issues)
23-
2. **💡 Request features** through issue discussions
24-
3. **📞 Contact us** at **info@lindentech.de** for business inquiries
24+
Fixes #(issue number)
2525

26-
### 📋 **Legal Information**
26+
## Changes Made
2727

28-
- **License:** Proprietary (see [LICENSE](../LICENSE) file)
29-
- **Owner:** LindenTech IT Consulting
28+
<!-- List the specific changes you made -->
29+
30+
-
31+
-
32+
-
33+
34+
## Testing
35+
36+
<!-- Describe how you tested your changes -->
37+
38+
- [ ] All existing tests pass (`npm test`)
39+
- [ ] Added new tests for the changes
40+
- [ ] Tested manually with examples
41+
- [ ] Linting passes (`npm run lint`)
42+
- [ ] Type checking passes (`npm run type-check`)
43+
44+
## Checklist
45+
46+
<!-- Please check all applicable items -->
47+
48+
- [ ] My code follows the project's code style guidelines
49+
- [ ] I have performed a self-review of my own code
50+
- [ ] I have commented my code, particularly in hard-to-understand areas
51+
- [ ] I have made corresponding changes to the documentation
52+
- [ ] My changes generate no new warnings or errors
53+
- [ ] I have added tests that prove my fix is effective or that my feature works
54+
- [ ] New and existing unit tests pass locally with my changes
55+
- [ ] Any dependent changes have been merged and published
56+
57+
## Additional Context
58+
59+
<!-- Add any other context, screenshots, or information about the PR here -->
60+
61+
---
62+
63+
## 📋 License Information
64+
65+
**SomonScript** is open source software licensed under the **MIT License**.
66+
67+
- **License:** MIT (see [LICENSE](../LICENSE) file)
68+
- **Copyright:** © 2025 LindenTech IT Consulting
3069
- **Contact:** info@lindentech.de
3170

32-
For complete licensing terms and permitted uses, please review:
71+
By submitting this pull request, you agree that your contributions will be
72+
licensed under the MIT License.
73+
74+
For contribution guidelines, please review:
3375

34-
- [LICENSE](../LICENSE) - Complete legal terms
35-
- [AUTHORS.md](../AUTHORS.md) - Ownership and participation guidelines
36-
- [CONTRIBUTING.md](../CONTRIBUTING.md) - Community engagement guidelines
76+
- [CONTRIBUTING.md](../CONTRIBUTING.md) - Community engagement and contribution
77+
guidelines
78+
- [AUTHORS.md](../AUTHORS.md) - Project ownership and contributors
3779

3880
---
3981

40-
**Thank you for your understanding and interest in SomonScript!**
82+
**Thank you for contributing to SomonScript! 🚀**

.github/workflows/pr-tests.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: Pull Request Tests
2+
3+
on:
4+
pull_request:
5+
branches: ['**']
6+
types: [opened, synchronize, reopened]
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
issues: write
12+
13+
jobs:
14+
test:
15+
name: Test on Node.js ${{ matrix.node-version }}
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
node-version: [20.x, 22.x, 23.x, 24.x]
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
cache: 'npm'
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Lint
37+
run: npm run lint
38+
39+
- name: Type check
40+
run: npm run type-check
41+
42+
- name: Build
43+
run: npm run build
44+
45+
- name: Run tests
46+
run: npm run test:ci
47+
48+
- name: Upload coverage reports to Codecov
49+
if: matrix.node-version == '20.x'
50+
uses: codecov/codecov-action@v5
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
files: ./coverage/lcov.info
54+
fail_ci_if_error: false
55+
flags: unittests,pr
56+
name: codecov-pr-${{ github.event.pull_request.number }}
57+
verbose: true
58+
59+
- name: Comment PR with test results
60+
if: always() && matrix.node-version == '20.x'
61+
continue-on-error: true
62+
uses: actions/github-script@v7
63+
with:
64+
script: |
65+
const jobStatus = '${{ job.status }}';
66+
const nodeVersion = '${{ matrix.node-version }}';
67+
const emoji = jobStatus === 'success' ? '✅' : '❌';
68+
69+
github.rest.issues.createComment({
70+
issue_number: context.issue.number,
71+
owner: context.repo.owner,
72+
repo: context.repo.repo,
73+
body: `${emoji} Tests completed on Node.js ${nodeVersion}: **${jobStatus}**`
74+
});
75+
76+
audit-examples:
77+
name: Audit Examples
78+
runs-on: ubuntu-latest
79+
needs: test
80+
81+
steps:
82+
- name: Checkout
83+
uses: actions/checkout@v4
84+
85+
- name: Setup Node.js
86+
uses: actions/setup-node@v4
87+
with:
88+
node-version: '20.x'
89+
cache: 'npm'
90+
91+
- name: Install dependencies
92+
run: npm ci
93+
94+
- name: Build
95+
run: npm run build
96+
97+
- name: Audit examples
98+
run: npm run audit:examples
99+
100+
pr-checks-summary:
101+
name: PR Checks Summary
102+
runs-on: ubuntu-latest
103+
needs: [test, audit-examples]
104+
if: always()
105+
106+
steps:
107+
- name: Check if all tests passed
108+
run: |
109+
if [ "${{ needs.test.result }}" != "success" ] || [ "${{ needs.audit-examples.result }}" != "success" ]; then
110+
echo "❌ Some checks failed"
111+
exit 1
112+
else
113+
echo "✅ All checks passed"
114+
fi

.github/workflows/version-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
strategy:
2424
matrix:
25-
node-version: [20.x, 22.x]
25+
node-version: [20.x, 22.x, 23.x, 24.x]
2626

2727
steps:
2828
- name: Checkout

0 commit comments

Comments
 (0)