Skip to content

Commit ed40601

Browse files
committed
edit to cypress workflow
1 parent c954085 commit ed40601

1 file changed

Lines changed: 15 additions & 22 deletions

File tree

.github/workflows/ui.yml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ jobs:
1616
with:
1717
# Disable running of tests within install job
1818
runTests: false
19-
build: npm run build
20-
21-
- name: Save build folder
22-
uses: actions/upload-artifact@v4
23-
with:
24-
name: build
25-
if-no-files-found: error
26-
path: build
2719

2820
set-shared-variables:
2921
name: Set shared variables
@@ -75,10 +67,10 @@ jobs:
7567
output.write("folio-npm-registry-auth=" + current_npm_registry_auth + "\n")
7668
output.close()
7769
78-
run:
79-
name: Install and lint
70+
install:
71+
name: Install
8072
runs-on: ubuntu-latest
81-
73+
needs: [set-shared-variables]
8274
steps:
8375
- name: Checkout ${{ github.repository }}
8476
uses: actions/checkout@v6
@@ -109,25 +101,26 @@ jobs:
109101
- name: List installed FOLIO package versions
110102
run: yarn list --pattern @folio
111103

112-
cypress-tests:
113-
name: Run Cypress tests
104+
cypress-run:
114105
runs-on: ubuntu-24.04
115-
needs: install-cypress
106+
needs: [install-cypress, install]
107+
strategy:
108+
# don't fail the entire matrix on failure
109+
fail-fast: false
110+
matrix:
111+
# run copies of the current job in parallel
112+
containers: [1, 2, 3, 4, 5]
116113
steps:
117114
- name: Checkout
118115
uses: actions/checkout@v4
119116

120-
- name: Download the build folder
121-
uses: actions/download-artifact@v4
122-
with:
123-
name: build
124-
path: build
125-
126117
- name: Cypress run
127118
uses: cypress-io/github-action@v6
128119
with:
129-
start: npm start
130-
browser: chrome
120+
record: true
121+
parallel: true
122+
group: 'UI-Chrome'
123+
start: yarn cypress run
131124

132125
# version-number:
133126
# # used for module descriptor and publishing to NPM

0 commit comments

Comments
 (0)