|
16 | 16 | with: |
17 | 17 | # Disable running of tests within install job |
18 | 18 | 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 |
27 | 19 |
|
28 | 20 | set-shared-variables: |
29 | 21 | name: Set shared variables |
@@ -75,10 +67,10 @@ jobs: |
75 | 67 | output.write("folio-npm-registry-auth=" + current_npm_registry_auth + "\n") |
76 | 68 | output.close() |
77 | 69 |
|
78 | | - run: |
79 | | - name: Install and lint |
| 70 | + install: |
| 71 | + name: Install |
80 | 72 | runs-on: ubuntu-latest |
81 | | - |
| 73 | + needs: [set-shared-variables] |
82 | 74 | steps: |
83 | 75 | - name: Checkout ${{ github.repository }} |
84 | 76 | uses: actions/checkout@v6 |
@@ -109,25 +101,26 @@ jobs: |
109 | 101 | - name: List installed FOLIO package versions |
110 | 102 | run: yarn list --pattern @folio |
111 | 103 |
|
112 | | - cypress-tests: |
113 | | - name: Run Cypress tests |
| 104 | + cypress-run: |
114 | 105 | 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] |
116 | 113 | steps: |
117 | 114 | - name: Checkout |
118 | 115 | uses: actions/checkout@v4 |
119 | 116 |
|
120 | | - - name: Download the build folder |
121 | | - uses: actions/download-artifact@v4 |
122 | | - with: |
123 | | - name: build |
124 | | - path: build |
125 | | - |
126 | 117 | - name: Cypress run |
127 | 118 | uses: cypress-io/github-action@v6 |
128 | 119 | with: |
129 | | - start: npm start |
130 | | - browser: chrome |
| 120 | + record: true |
| 121 | + parallel: true |
| 122 | + group: 'UI-Chrome' |
| 123 | + start: yarn cypress run |
131 | 124 |
|
132 | 125 | # version-number: |
133 | 126 | # # used for module descriptor and publishing to NPM |
|
0 commit comments