fix(ci): add CODEOWNERS, enable test blocking, add pre-commit hooks

This commit is contained in:
admin 2025-12-19 11:03:07 -06:00
parent ca643b656e
commit 37ed597adf
4 changed files with 26 additions and 2 deletions

12
.github/CODEOWNERS vendored Normal file
View file

@ -0,0 +1,12 @@
# Default owner for all files
* @cheir-mneme
# CI/CD workflows
.github/ @cheir-mneme
# Frontend
frontend/ @cheir-mneme
# Core backend
src/NzbDrone.Core/ @cheir-mneme
src/Radarr.Api.V3/ @cheir-mneme

View file

@ -95,7 +95,6 @@ jobs:
- name: Test with coverage
shell: bash
continue-on-error: true
run: ./test.sh Linux Unit Coverage
- name: Report test results

1
.husky/pre-commit Executable file
View file

@ -0,0 +1 @@
npx lint-staged

View file

@ -11,7 +11,8 @@
"lint": "eslint --config frontend/.eslintrc.js --ignore-path frontend/.eslintignore frontend/",
"lint-fix": "yarn lint --fix",
"stylelint-linux": "stylelint $(find frontend -name '*.css') --config frontend/.stylelintrc",
"stylelint-windows": "stylelint \"frontend/**/*.css\" --config frontend/.stylelintrc"
"stylelint-windows": "stylelint \"frontend/**/*.css\" --config frontend/.stylelintrc",
"prepare": "husky"
},
"repository": "https://github.com/Radarr/Radarr",
"author": "Team Radarr",
@ -89,6 +90,8 @@
"use-debounce": "10.0.4"
},
"devDependencies": {
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"@babel/core": "7.27.1",
"@babel/eslint-parser": "7.27.1",
"@babel/plugin-proposal-export-default-from": "7.27.1",
@ -163,5 +166,14 @@
"color-string": "^1.9.1",
"postcss-color-function/**/postcss": "^8.5.6",
"glob": "^11.1.0"
},
"lint-staged": {
"frontend/**/*.{ts,tsx}": [
"eslint --config frontend/.eslintrc.js --fix",
"prettier --write"
],
"frontend/**/*.css": [
"prettier --write"
]
}
}