Skip to content

Commit 8ba5a9f

Browse files
committed
Update e2e pipeline
1 parent 3af2f0e commit 8ba5a9f

7 files changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
13-
node-version: [18]
13+
node-version: [18.14]
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3

.github/workflows/e2e-testing.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,24 @@ jobs:
2525
- name: Install dependencies
2626
run: pnpm install --frozen-lockfile
2727

28+
- name: Build
29+
run: pnpm build
30+
2831
- name: Cypress install
2932
run: ./node_modules/cypress/bin/cypress install
3033

3134
- name: Cypress run
32-
uses: cypress-io/github-action@v5
35+
uses: cypress-io/github-action@v4
3336
with:
3437
install: false
38+
# build playground
39+
# build: pnpm dev:playground
40+
# start playground
3541
start: pnpm dev:playground
36-
wait-on: 'http://localhost:5173/'
42+
command: pnpm e2e
43+
# FIXME: this breaks it
44+
# wait-on: 'http://localhost:5173'
45+
# project: /packages/react-use-intercom
3746

3847
# after the test run completes
3948
# store videos and any screenshots
@@ -46,4 +55,4 @@ jobs:
4655
if: failure()
4756
with:
4857
name: cypress-screenshots
49-
path: cypress/screenshots
58+
path: ./packages/react-use-intercom/cypress/screenshots

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-20.04
66
strategy:
77
matrix:
8-
node-version: [18]
8+
node-version: [18.14]
99

1010
steps:
1111
- name: Checkout

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-20.04
66
strategy:
77
matrix:
8-
node-version: [18]
8+
node-version: [18.14]
99

1010
steps:
1111
- name: Checkout

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-20.04
1414
strategy:
1515
matrix:
16-
node-version: [18]
16+
node-version: [18.14]
1717

1818
steps:
1919
- name: Checkout

apps/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc && vite build",
9-
"preview": "vite preview"
9+
"preview": "vite preview --host"
1010
},
1111
"dependencies": {
1212
"react": "^18.2.0",

apps/playground/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ import { defineConfig } from 'vite';
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6+
preview: {
7+
port: 5173,
8+
},
69
plugins: [react()],
710
});

0 commit comments

Comments
 (0)