Skip to content

Commit c4df0b5

Browse files
authored
Merge pull request #7 from devsheva/develop
[PR]: Repository initialization
2 parents f73ca32 + 21f8ff3 commit c4df0b5

File tree

9 files changed

+819
-12
lines changed

9 files changed

+819
-12
lines changed

.github/workflows/qa.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: QA Workflow
2+
3+
on:
4+
push:
5+
branches: develop
6+
tags: '*'
7+
pull_request:
8+
branches: master
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
name: Test
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 9
20+
- name: Setup Node.js environment
21+
uses: actions/[email protected]
22+
with:
23+
node-version-file: '.tool-versions'
24+
cache: 'pnpm'
25+
- name: Install dependencies
26+
run: pnpm install
27+
- name: Run tests
28+
run: pnpm test
29+
30+
coverage:
31+
name: Coverage
32+
runs-on: ubuntu-latest
33+
needs: test
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Install pnpm
37+
uses: pnpm/action-setup@v4
38+
with:
39+
version: 9
40+
- name: Setup Node.js environment
41+
uses: actions/[email protected]
42+
with:
43+
node-version-file: '.tool-versions'
44+
cache: 'pnpm'
45+
- name: Install dependencies
46+
run: pnpm install
47+
- name: Run coverage
48+
run: pnpm coverage
49+
- name: Upload coverage
50+
uses: codecov/[email protected]
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 2,
3+
"semi": false,
4+
"singleQuote": true,
5+
"trailingComma": "none"
6+
}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
# rich-logger
1+
# simplelog
2+
3+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/devsheva/simplelog/qa.yml)
4+
![Codecov](https://img.shields.io/codecov/c/github/devsheva/simplelog)
5+
26
A simple logger decorator amplify like

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
{
2+
"name": "simplelog",
3+
"description": "A simple logging library",
24
"devDependencies": {
5+
"@vitest/coverage-v8": "^2.0.5",
6+
"nodemon": "^3.1.4",
7+
"prettier": "3.3.3",
8+
"ts-node": "^10.9.2",
39
"typescript": "^5.5.4",
410
"vitest": "^2.0.5"
11+
},
12+
"scripts": {
13+
"start": "pnpm ts-node src/index.ts",
14+
"dev": "pnpm nodemon src/index.ts",
15+
"build": "tsc",
16+
"test": "vitest",
17+
"coverage": "vitest run --coverage"
518
}
619
}

0 commit comments

Comments
 (0)