Skip to content

Commit 4e1cbcb

Browse files
committed
feat: Add Cypress installation and testing steps to GitHub Actions workflows
1 parent 847a0bc commit 4e1cbcb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,13 @@ jobs:
1818
- name: Install pnpm
1919
run: npm install -g pnpm
2020
- run: pnpm install
21+
- name: Install Cypress
22+
run: pnpx cypress install
23+
- name: Build Storybook
24+
run: pnpm run build-storybook
25+
- name: Run Cypress tests
26+
run: |
27+
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
28+
"npx http-server storybook-static --port 6006 --silent" \
29+
"npx wait-on tcp:6006 && pnpm cypress:run"
2130
- run: pnpm run build

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ jobs:
1919
- name: Install pnpm
2020
run: npm install -g pnpm
2121
- run: pnpm install
22+
- name: Install Cypress
23+
run: pnpx cypress install
24+
- name: Build Storybook
25+
run: pnpm run build-storybook
26+
- name: Run Cypress tests
27+
run: |
28+
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
29+
"npx http-server storybook-static --port 6006 --silent" \
30+
"npx wait-on tcp:6006 && pnpm cypress:run"
2231
- run: pnpm run build
2332
- run: npm publish --provenance --access public
2433
env:

0 commit comments

Comments
 (0)