Skip to content

Commit

Permalink
fix: make stick work with SSR (#803)
Browse files Browse the repository at this point in the history
fix: make stick work with SSR
  • Loading branch information
frontendphil authored May 23, 2024
1 parent c3d26d8 commit c8645b9
Show file tree
Hide file tree
Showing 7 changed files with 1,737 additions and 198 deletions.
46 changes: 36 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ executors:
resource_class: medium

commands:

install_tools:
install-codecov-requirements:
steps:
- run:
name: "Install tools"
command: |
name: "Install codecov requirements"
command: |
apt-get -y update && apt-get install -y git curl gpg
# cypress requirements
install-cypress-requirements:
steps:
- run:
name: "Install cypress requirements"
command: |
apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
fortify_scan:
Expand Down Expand Up @@ -70,7 +74,6 @@ jobs:

steps:
- checkout
- install_tools

- *restore_cache

Expand All @@ -87,7 +90,6 @@ jobs:

steps:
- checkout
- install_tools

- *restore_cache

Expand All @@ -99,19 +101,32 @@ jobs:
<<: *defaults
steps:
- checkout
- install_tools
- install-codecov-requirements
- install-cypress-requirements

- *restore_cache

- run:
name: Test
command: npm run test

test-ssr:
<<: *defaults
steps:
- checkout
- install-codecov-requirements

- *restore_cache

- run:
name: Test SSR
command: npm run test:ssr -- --coverage

release:
<<: *defaults
steps:
- checkout
- install_tools
- install-codecov-requirements
- *restore_cache
- run:
name: Fix host authenticity for github.com
Expand All @@ -135,7 +150,7 @@ jobs:
<<: *defaults
steps:
- checkout
- install_tools
- install-codecov-requirements
- *restore_cache
- run:
name: Define environment variable with lastest commit's message
Expand Down Expand Up @@ -163,6 +178,17 @@ workflows:
post-steps:
- codecov/upload:
file: tests/coverage/clover.xml
flags: e2e
- test-ssr:
requires:
- install
filters:
branches:
ignore: master
post-steps:
- codecov/upload:
file: coverage/clover.xml
flags: ssr
- lint_commit_message:
requires:
- install
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
npm-debug.log*
/build
.DS_Store
/tests/coverage
/tests/.nyc_output
cypress
pnpm-lock.yaml
yarn.lock
/.vscode
/.vscode
coverage
Loading

0 comments on commit c8645b9

Please sign in to comment.