Skip to content

Commit

Permalink
test: EN locales, pre-commit fix, feature PRs checks
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinab25 committed Sep 5, 2023
1 parent 0ae6fc1 commit 96c8cf2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,2 @@
[ -n "$CI" ] && exit 0
yarn lint-staged
8 changes: 4 additions & 4 deletions Jenkinsfile
Expand Up @@ -66,7 +66,7 @@ pipeline {
allOf {
not { environment name: 'CHANGE_ID', value: '' }
environment name: 'CHANGE_TARGET', value: 'develop'
}
}
allOf {
environment name: 'CHANGE_ID', value: ''
anyOf {
Expand Down Expand Up @@ -120,7 +120,7 @@ pipeline {
allOf {
not { environment name: 'CHANGE_ID', value: '' }
environment name: 'CHANGE_TARGET', value: 'develop'
}
}
allOf {
environment name: 'CHANGE_ID', value: ''
anyOf {
Expand Down Expand Up @@ -183,7 +183,7 @@ pipeline {
allOf {
not { environment name: 'CHANGE_ID', value: '' }
environment name: 'CHANGE_TARGET', value: 'develop'
}
}
allOf {
environment name: 'CHANGE_ID', value: ''
anyOf {
Expand Down Expand Up @@ -221,7 +221,7 @@ pipeline {
allOf {
not { environment name: 'CHANGE_ID', value: '' }
environment name: 'CHANGE_TARGET', value: 'develop'
}
}
allOf {
environment name: 'CHANGE_ID', value: ''
branch 'develop'
Expand Down
4 changes: 2 additions & 2 deletions cypress.config.js
Expand Up @@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');

module.exports = defineConfig({
viewportWidth: 1280,
defaultCommandTimeout: 8888,
defaultCommandTimeout: 5000,
chromeWebSecurity: false,
reporter: 'junit',
video: true,
retries: {
runMode: 8,
runMode: 1,
openMode: 0,
},
reporterOptions: {
Expand Down
28 changes: 26 additions & 2 deletions package.json
Expand Up @@ -24,7 +24,30 @@
"@cypress/code-coverage": "^3.10.0",
"@plone/scripts": "*",
"babel-plugin-transform-class-properties": "^6.24.1",
"md5": "^2.3.0"
"md5": "^2.3.0",
"husky": "*",
"lint-staged": "*"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json}": [
"make lint-fix",
"make prettier-fix"
],
"src/**/*.{jsx}": [
"make i18n"
],
"theme/**/*.{css,less}": [
"make stylelint-fix"
],
"src/**/*.{css,less}": [
"make stylelint-fix"
],
"theme/**/*.overrides": [
"make stylelint-fix"
],
"src/**/*.overrides": [
"make stylelint-fix"
]
},
"scripts": {
"release": "release-it",
Expand All @@ -43,6 +66,7 @@
"lint:fix": "make lint-fix",
"i18n": "make i18n",
"cypress:run": "make cypress-run",
"cypress:open": "make cypress-open"
"cypress:open": "make cypress-open",
"prepare": "husky install"
}
}

0 comments on commit 96c8cf2

Please sign in to comment.