Skip to content

Commit

Permalink
Upgrade cypress and CI runs on chrome (#59)
Browse files Browse the repository at this point in the history
* test: apply browser option at cypress CI

* chore: upgrade dependencies

* chore: upgrade resume cypress to 10.1.0 and rename few things

* chore: upgrade blog cypress to 10.1.0 and rename few files

* chore: upgrade cypress-io/github-action to v4
  • Loading branch information
hyesungoh authored Jun 11, 2022
1 parent 9438fe1 commit ea32027
Show file tree
Hide file tree
Showing 15 changed files with 1,129 additions and 1,087 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ jobs:
run: yarn

- name: Cypress run - blog
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v4
with:
browser: chrome
working-directory: apps/blog
start: yarn dev
wait-on: 'http://localhost:3000'
Expand All @@ -107,8 +108,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Cypress run - resume
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v4
with:
browser: chrome
working-directory: apps/resume
start: yarn dev
wait-on: 'http://localhost:3001'
Expand Down
13 changes: 13 additions & 0 deletions apps/blog/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from 'cypress';

export default defineConfig({
projectId: 'yiddyz',
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config);
},
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
});
3 changes: 0 additions & 3 deletions apps/blog/cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
24 changes: 16 additions & 8 deletions apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,39 @@
"cypress": "cypress open"
},
"dependencies": {
"@emotion/react": "^11.8.2",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@nextui-org/react": "^1.0.4-beta.5",
"core": "*",
"@types/jest": "^27.5.2",
"@types/node": "^17.0.42",
"core": "0.0.1",
"esbuild": "^0.14.43",
"gray-matter": "^4.0.3",
"kbar": "^0.1.0-beta.33",
"next": "^12.1.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"kbar": "^0.1.0-beta.35",
"next": "^12.1.6",
"next-themes": "^0.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rehype-add-classes": "^1.0.0",
"rehype-external-links": "^1.0.1",
"rehype-prism-plus": "^1.3.2",
"rehype-prism-plus": "^1.4.0",
"rehype-slug": "^5.0.1",
"rehype-stringify": "^9.0.3",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
"ts-jest": "^28.0.4",
"turbo": "^1.2.16",
"typescript": "^4.7.3",
"unified": "^10.1.2"
},
"devDependencies": {
"compression-webpack-plugin": "^9.2.0",
"config": "*",
"cypress": "^9.5.3",
"config": "1.0.0",
"cypress": "^10.1.0",
"next-transpile-modules": "^9.0.0",
"tsconfig": "*"
"tsconfig": "0.0.0"
}
}
13 changes: 13 additions & 0 deletions apps/resume/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from 'cypress';

export default defineConfig({
projectId: 'inc4yo',
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config);
},
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
});
3 changes: 0 additions & 3 deletions apps/resume/cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions apps/resume/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
"cypress": "cypress open"
},
"dependencies": {
"@emotion/react": "^11.8.2",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@nextui-org/react": "^1.0.4-beta.5",
"core": "*",
"kbar": "^0.1.0-beta.33",
"next": "^12.1.0",
"core": "0.0.1",
"kbar": "^0.1.0-beta.35",
"next": "^12.1.6",
"next-themes": "^0.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"compression-webpack-plugin": "^9.2.0",
"config": "*",
"cypress": "^9.5.3",
"config": "1.0.0",
"cypress": "^10.1.0",
"next-transpile-modules": "^9.0.0",
"tsconfig": "*"
"tsconfig": "0.0.0"
}
}
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@
},
"packageManager": "yarn@1.22.17",
"devDependencies": {
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^14.0.4",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.12",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"@testing-library/user-event": "^14.2.0",
"@types/jest": "^27.5.2",
"@types/node": "^17.0.42",
"@types/react": "^17.0.45",
"@types/react-dom": "^17.0.17",
"codecov": "^3.8.3",
"esbuild": "^0.14.31",
"esbuild": "^0.14.43",
"esbuild-jest": "^0.5.0",
"eslint": "^7.32.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"jest-watch-typeahead": "^1.0.0",
"prettier": "^2.5.1",
"ts-jest": "^28.0.3",
"turbo": "^1.1.10",
"typescript": "^4.5.3"
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"jest-watch-typeahead": "^1.1.0",
"prettier": "^2.6.2",
"ts-jest": "^28.0.4",
"turbo": "^1.2.16",
"typescript": "^4.7.3"
}
}
18 changes: 9 additions & 9 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"jest-setup.js"
],
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"eslint-config-next": "^12.0.8",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"eslint-config-next": "^12.1.6",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-jest-dom": "^4.0.1",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-jest-dom": "^4.0.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-testing-library": "^5.2.1"
"eslint-plugin-testing-library": "^5.5.1"
}
}
18 changes: 13 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@emotion/react": "^11.8.2",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@nextui-org/react": "^1.0.4-beta.5",
"kbar": "^0.1.0-beta.33",
"next-themes": "^0.1.1"
"@types/jest": "^27.5.2",
"@types/node": "^17.0.42",
"esbuild": "^0.14.43",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"kbar": "^0.1.0-beta.35",
"next-themes": "^0.1.1",
"ts-jest": "^28.0.4",
"turbo": "^1.2.16",
"typescript": "^4.7.3"
},
"devDependencies": {
"config": "*",
"tsconfig": "*"
"config": "1.0.0",
"tsconfig": "0.0.0"
}
}
Loading

2 comments on commit ea32027

@vercel
Copy link

@vercel vercel bot commented on ea32027 Jun 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

comet-land-blog – ./apps/blog

comet-land-blog-hyesungoh.vercel.app
comet-land-blog.vercel.app
comet-land-blog-git-main-hyesungoh.vercel.app

@vercel
Copy link

@vercel vercel bot commented on ea32027 Jun 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

comet-land-resume – ./apps/resume

comet-land-resume.vercel.app
comet-land-resume-git-main-hyesungoh.vercel.app
comet-land-resume-hyesungoh.vercel.app

Please sign in to comment.