Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add regression tests for server-side-rendering #1174

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NamNg1121
Copy link
Contributor

No description provided.

@NamNg1121 NamNg1121 requested a review from Brailor March 20, 2023 12:54
@NamNg1121 NamNg1121 self-assigned this Mar 20, 2023
@github-actions
Copy link

github-actions bot commented Mar 20, 2023

Description Bundle size (gzipped)
Target branch package bundle size. (master)
Target branch base commit:
master/fdba0f5b156aab5055c70ed03a0a72f1dd92e892
1160 kB
Pull Request branch package bundle size. (INSTUI-3743-add-next-js-support-to-the-regression-testing-suite)
HEAD commit at PR branch:
INSTUI-3743-add-next-js-support-to-the-regression-testing-suite/c351f840f9a00dab17e01ede882e9264b8c89d62
1160 kB
Same bundle size.

Generated by 🚫 dangerJS against c351f84

@github-actions
Copy link

Preview URL: https://1174--preview-instui.netlify.app

.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Show resolved Hide resolved
regression-test/src/pages/_app.tsx Outdated Show resolved Hide resolved
@NamNg1121 NamNg1121 force-pushed the INSTUI-3743-add-next-js-support-to-the-regression-testing-suite branch from c52de80 to c351f84 Compare March 29, 2023 05:03
@NamNg1121 NamNg1121 requested a review from Brailor March 29, 2023 05:06
@@ -6,6 +6,8 @@
"scripts": {
"build:webpack4": "webpack",
"build:esbuild": "node esbuild.cjs",
"build:next": "next build ./src",
"start:next": "next start ./src ",
Copy link
Contributor

Choose a reason for hiding this comment

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

This has to be changed to next dev ./src, since we wan't to test the development build of the next.js app.

Comment on lines +102 to +130
server-side-rendering-regression-test:
needs: release
if: "!startsWith(github.event.head_commit.message, 'chore(release)')"
name: Regression testing
runs-on: ubuntu-latest
strategy:
matrix:
browser: [chrome, firefox]
defaults:
run:
working-directory: ./regression-test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: Retrieve latest snapshot version
run: node prepare.js
- name: Install dependencies for regression testing
run: yarn install --no-immutable
- name: Build project and start the server
run: |
yarn build:next
yarn start:next &
- name: Run regression tests
run: npx testcafe ${{ matrix.browser }}:headless ./src/test.ts
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the next.js app throws multiple errors, I would turn off this job until those errors are resolved in the regression-test application, because of those errors the whole workflow will always fail.

You can turn off a job by adding an if statement to the job itself:

 server-side-rendering-regression-test:
    needs: release
      if:  false # "!startsWith(github.event.head_commit.message, 'chore(release)')"
      name: Regression testing
...

@matyasf matyasf changed the title chore: add regression tests for server-sire-rendering chore: add regression tests for server-side-rendering Jun 9, 2023
@matyasf matyasf force-pushed the INSTUI-3743-add-next-js-support-to-the-regression-testing-suite branch from c351f84 to d86d7b3 Compare July 24, 2023 10:17
@HerrTopi HerrTopi requested review from matyasf and HerrTopi and removed request for matyasf and HerrTopi August 22, 2023 13:56
@joyenjoyer joyenjoyer force-pushed the INSTUI-3743-add-next-js-support-to-the-regression-testing-suite branch from d86d7b3 to 28eb65b Compare March 1, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants