Skip to content

Commit 59510f2

Browse files
committed
fix(workflows): add wait-on
1 parent 512c34a commit 59510f2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Diff for: .github/workflows/daily-project-check.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ jobs:
4141
uses: actions/setup-node@v4
4242
with:
4343
node-version: 18
44+
- run: npm i
4445
- name: e2e chrome test
4546
uses: cypress-io/github-action@v6
47+
timeout-minutes: 5
4648
with:
4749
browser: chrome
48-
- run: |
49-
npm i
50-
npm run build-lib:prod
51-
npm run e2e
50+
build: npm run build-lib:prod
51+
start: npm start
52+
wait-on: 'http://localhost:4200'
5253
env:
5354
BROWSER: chrome

Diff for: .github/workflows/project-check.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ jobs:
4545
uses: actions/setup-node@v4
4646
with:
4747
node-version: 18
48+
- run: npm i
4849
- name: e2e chrome test
4950
uses: cypress-io/github-action@v6
51+
timeout-minutes: 5
5052
with:
5153
browser: chrome
52-
- run: |
53-
npm i
54-
npm run build-lib:prod
55-
npm run e2e
54+
build: npm run build-lib:prod
55+
start: npm start
56+
wait-on: 'http://localhost:4200'
5657
env:
5758
BROWSER: chrome

0 commit comments

Comments
 (0)