Skip to content

Commit 122981a

Browse files
authored
Merge pull request #291 from flyingrobots/chore/audit-guardrails
chore: audit guardrails and observability (#290)
2 parents 031ddd0 + 20df34f commit 122981a

16 files changed

Lines changed: 756 additions & 31 deletions

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,20 @@ jobs:
2929
uses: actions/setup-node@v4
3030
with:
3131
node-version: ${{ matrix.node-version }}
32+
cache: 'npm'
3233

3334
- name: Install dependencies
3435
run: npm ci
3536

36-
- name: Run tests
37-
run: npm test
37+
- name: Run linter
38+
run: npm run lint
39+
40+
- name: Run tests with coverage
41+
run: npx vitest run --coverage
42+
43+
- name: Upload coverage report
44+
if: always()
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: coverage-${{ matrix.node-version }}
48+
path: coverage/lcov.info

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
4+
export default [
5+
js.configs.recommended,
6+
{
7+
languageOptions: {
8+
ecmaVersion: 'latest',
9+
sourceType: 'module',
10+
globals: {
11+
...globals.node,
12+
},
13+
},
14+
rules: {
15+
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
16+
},
17+
},
18+
{
19+
ignores: ['node_modules/', 'coverage/'],
20+
},
21+
];

0 commit comments

Comments
 (0)