mirror of
https://github.com/Radarr/Radarr
synced 2026-04-24 00:44:18 +02:00
fix(ci): add CODEOWNERS, enable test blocking, add pre-commit hooks
This commit is contained in:
parent
ca643b656e
commit
37ed597adf
4 changed files with 26 additions and 2 deletions
12
.github/CODEOWNERS
vendored
Normal file
12
.github/CODEOWNERS
vendored
Normal 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
|
||||
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
|
@ -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
1
.husky/pre-commit
Executable file
|
|
@ -0,0 +1 @@
|
|||
npx lint-staged
|
||||
14
package.json
14
package.json
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue