Skip to content

Commit

Permalink
Merge branch 'master' into feat/axios-retry-added
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhat-wednesday authored Nov 24, 2022
2 parents d34ef2d + b1638bb commit 53c355c
Show file tree
Hide file tree
Showing 5 changed files with 1,018 additions and 42 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ jobs:
cache: 'yarn'

- name: Install dependencies
run: yarn
run: yarn && yarn run initialize
- name: Lint
run: yarn lint
run: yarn lint:ci

- name: Test
run: yarn test

- name: Build
run: yarn build

- name: LHCI Benchmark
run: yarn lhci

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ switcher_backup.env
yarn-error.log
storybook-static
reports/
.lighthouseci
# Cruft
.DS_Store
npm-debug.log
Expand Down
21 changes: 21 additions & 0 deletions lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
ci: {
collect: {
url: ['http://localhost:3000/'],
staticDistDir: './build',
numberOfRuns: 2
},
upload: {
target: 'temporary-public-storage'
},
assert: {
assertions: {
'first-contentful-paint': ['warn', { maxNumericValue: 2000 }],
'categories:performance': ['warn', { minScore: 0.95 }],
'categories:accessibility': ['warn', { minScore: 0.95 }],
'categories:best-practices': ['warn', { minScore: 0.95 }],
'categories:seo': ['warn', { minScore: 0.95 }]
}
}
}
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@
"clean": "shjs ./internals/scripts/clean.js",
"clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean",
"lint": "npm run lint:js && npm run lint:css",
"lint:ci": "npm run lint:js:ci && npm run lint:css",
"lint:css": "stylelint app/**/*.js",
"lint:eslint": "eslint --ignore-path .eslintignore --ignore-pattern internals/scripts",
"lint:eslint:fix": "eslint --ignore-path .eslintignore --ignore-pattern internals/scripts --fix",
"lint:js": "npm run lint:eslint -- . ",
"lint:js:ci": "eslint --ignore-path .eslintignore internals/webpack/webpack.config.prod.js --ignore-pattern internals -- .",
"lint:staged": "lint-staged",
"lhci": "lhci autorun",
"test:clean": "rimraf ./coverage",
"test": "cross-env NODE_ENV=test jest --coverage",
"test:staged": "jest --findRelatedTests",
Expand Down Expand Up @@ -143,6 +146,7 @@
"@babel/register": "7.14.5",
"@babel/runtime": "^7.14.6",
"@lcdp/offline-plugin": "^5.1.0",
"@lhci/cli": "0.8.x",
"@storybook/addon-actions": "^5.2.1",
"@storybook/addon-knobs": "^5.2.1",
"@storybook/addon-links": "^5.2.1",
Expand Down
Loading

0 comments on commit 53c355c

Please sign in to comment.