Skip to content

Commit 43cf21d

Browse files
authored
refactor:code coverage & CI changes (#25)
1 parent 0d9ae4b commit 43cf21d

13 files changed

Lines changed: 36 additions & 794 deletions

File tree

.eslintrc.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
/* eslint-env node */
12
module.exports = {
23
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint'],
35
parserOptions: {
46
ecmaVersion: 2020,
57
sourceType: 'module',
@@ -9,7 +11,7 @@ module.exports = {
911
'plugin:@typescript-eslint/recommended',
1012
],
1113
rules: {
12-
'@typescript-eslint/explicit-function-return-types': 'warn',
14+
'@typescript-eslint/explicit-function-return-type': 'warn',
1315
'@typescript-eslint/no-explicit-any': 'warn',
1416
'no-console': ['warn', { allow: ['warn', 'error'] }],
1517
},

.github/workflows/ci.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
test:
1111
name: Test & Lint
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
pull-requests: write
1316

1417
steps:
1518
- name: Checkout repository
@@ -18,25 +21,33 @@ jobs:
1821
- name: Setup Node.js
1922
uses: actions/setup-node@v4
2023
with:
21-
node-version: '18'
24+
node-version: '20'
2225
cache: 'npm'
2326

2427
- name: Install dependencies
2528
run: npm ci
2629

30+
- name: Lint
31+
run: npm run lint
2732

28-
- name: Run tests
29-
run: npm run test
30-
31-
- name: Build project
33+
- name: Build
3234
run: npm run build
3335

3436
- name: Run tests with coverage
3537
run: npm run test:coverage
3638

39+
- name: Coverage Report as Comment
40+
if: github.event_name == 'pull_request'
41+
uses: romeovs/lcov-reporter-action@v0.3.1
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
lcov-file: ./coverage/lcov.info
45+
delete-old-comments: true
46+
3747
- name: Upload coverage reports
38-
uses: codecov/codecov-action@v4
3948
if: always()
49+
uses: actions/upload-artifact@v4
4050
with:
41-
token: ${{ secrets.CODECOV_TOKEN }}
42-
fail_ci_if_error: false
51+
name: coverage-report
52+
path: coverage/
53+
retention-days: 30

.github/workflows/dependency-review.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@ jobs:
2222
with:
2323
# Fail on critical or high severity vulnerabilities
2424
fail-on-severity: moderate
25-
# Deny these copyleft licenses
26-
deny-licenses: GPL-3.0, AGPL-3.0, LGPL-3.0
2725
comment-summary-in-pr: always

AI-PROGRESS.md

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)