Skip to content

Commit

Permalink
fix-483 : prevent warnings on duplicate keys (#484)
Browse files Browse the repository at this point in the history
fixes #483
  • Loading branch information
prabhuignoto authored Mar 21, 2024
1 parent 4945f39 commit a06d525
Show file tree
Hide file tree
Showing 10 changed files with 1,946 additions and 1,639 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,30 @@ jobs:
node-version: [20.x]

steps:
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8.8.0

- uses: actions/checkout@v2

- name: Cache PNPM dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: pnpm install

- name: Cache build artifacts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: dist
key: ${{ runner.os }}-build-${{ matrix.node-version }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '20.x' # replace with the latest version of Node.js

Expand All @@ -25,29 +25,29 @@ jobs:
version: 8.8.0

- name: Cache PNPM dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Cache Cypress binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-binary
restore-keys: |
${{ runner.os }}-cypress-
- name: Run Cypress tests
uses: cypress-io/github-action@v6
uses: cypress-io/github-action@v6.6.1
with:
install: false
start: pnpm dev --host
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8.1.0

- uses: actions/checkout@v2

- name: Cache PNPM dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest
name: Snyk Security Scan
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: latest

- name: Cache PNPM dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
Expand All @@ -32,7 +32,7 @@ jobs:
run: pnpm install

- name: Cache Snyk cache folder
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/snyk
key: ${{ runner.os }}-snyk-${{ hashFiles('pnpm-lock.yaml') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
Expand Down
7 changes: 7 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export default defineConfig({
launchOptions.preferences.fullscreen = true;
return launchOptions;
}

if (browser.name === 'firefox') {
launchOptions.args.push('--start-fullscreen');
launchOptions.args.push('--headless');
launchOptions.args.push('--disable-gpu');
return launchOptions;
}
});
// return require('./cypress/plugins/index.js')(on, config);
},
Expand Down
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/core": "^7.24.3",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-transform-runtime": "^7.24.0",
"@babel/plugin-transform-typescript": "^7.23.6",
"@babel/preset-env": "^7.24.0",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.24.3",
"@babel/plugin-transform-typescript": "^7.24.1",
"@babel/preset-env": "^7.24.3",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@emotion/babel-plugin": "^11.11.0",
"@jest/types": "^29.6.3",
"@rollup/plugin-babel": "^6.0.4",
Expand All @@ -73,46 +73,46 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-strip": "^3.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@size-limit/preset-big-lib": "^11.0.3",
"@size-limit/preset-big-lib": "^11.1.1",
"@stylelint/postcss-css-in-js": "^0.38.0",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/react": "^14.2.2",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.26",
"@types/react": "^18.2.65",
"@types/react-dom": "^18.2.21",
"@types/node": "^20.11.30",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@types/react-router-dom": "^5.3.3",
"@types/sanitize-html": "^2.11.0",
"@types/styled-components": "^5.1.34",
"@types/testing-library__jest-dom": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.3.1",
"@vitest/ui": "^1.3.1",
"autoprefixer": "^10.4.18",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"autoprefixer": "^10.4.19",
"babel-loader": "^9.1.3",
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
"babel-plugin-styled-components": "^2.1.4",
"c8": "^9.1.0",
"cssnano": "^6.1.0",
"cypress": "13.6.6",
"cssnano": "^6.1.1",
"cypress": "13.7.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"husky": "^9.0.11",
"intersection-observer": "^0.12.2",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"postcss": "^8.4.35",
"postcss-preset-env": "^9.5.0",
"postcss": "^8.4.38",
"postcss-preset-env": "^9.5.2",
"postcss-syntax": "^0.36.2",
"prettier": "^3.2.5",
"pretty-quick": "^4.0.0",
Expand All @@ -130,10 +130,10 @@
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.71.1",
"sass": "^1.72.0",
"semver": "7.6.0",
"size-limit": "^11.0.3",
"snyk": "^1.1283.0",
"size-limit": "^11.1.1",
"snyk": "^1.1285.0",
"start-server-and-test": "^2.0.3",
"stylelint": "^16.2.1",
"stylelint-config-prettier-scss": "^1.0.0",
Expand All @@ -142,12 +142,12 @@
"stylelint-config-styled-components": "^0.1.1",
"stylelint-order": "^6.0.4",
"stylelint-processor-styled-components": "^1.10.0",
"typescript": "^5.4.2",
"typescript": "^5.4.3",
"typescript-plugin-css-modules": "^5.1.0",
"typescript-plugin-styled-components": "^3.0.0",
"vite": "^5.1.6",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.3.1"
"vite": "^5.2.2",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.4.0"
},
"resolutions": {
"ansi-regex": "5.0.1",
Expand Down
Loading

0 comments on commit a06d525

Please sign in to comment.