|
19 | 19 |
|
20 | 20 | jobs: |
21 | 21 |
|
| 22 | + # Check style compliance of JavaScript code. |
| 23 | + |
22 | 24 | lint: |
23 | 25 | runs-on: ubuntu-latest |
24 | 26 | steps: |
25 | 27 | - uses: actions/checkout@v4 |
26 | | - - uses: ./.github/actions/install-deps |
| 28 | + - uses: ./.github/actions/install-node-package |
27 | 29 | with: |
28 | 30 | node-version: ${{ env.NODE_VERSION }} |
29 | 31 | - run: npm run eslint |
30 | 32 |
|
| 33 | + # Check shell scripts. |
| 34 | + |
31 | 35 | shellcheck: |
32 | 36 | runs-on: ubuntu-latest |
33 | 37 | steps: |
@@ -58,10 +62,13 @@ jobs: |
58 | 62 | SKIP_MIGRATION: 1 |
59 | 63 | steps: |
60 | 64 | - uses: actions/checkout@v4 |
61 | | - - uses: ./.github/actions/install-deps |
| 65 | + - uses: ./.github/actions/install-node-package |
62 | 66 | with: |
63 | 67 | node-version: ${{ matrix.node }} |
| 68 | + - uses: ./.github/actions/install-couchdb |
| 69 | + with: |
64 | 70 | couchdb-version: ${{ matrix.couchdb }} |
| 71 | + - uses: ./.github/actions/build-pouchdb |
65 | 72 | - id: test |
66 | 73 | run: ${{ matrix.cmd }} |
67 | 74 | continue-on-error: true |
@@ -98,10 +105,14 @@ jobs: |
98 | 105 | SKIP_MIGRATION: 1 |
99 | 106 | steps: |
100 | 107 | - uses: actions/checkout@v4 |
101 | | - - uses: ./.github/actions/install-deps |
| 108 | + - uses: ./.github/actions/install-node-package |
102 | 109 | with: |
103 | 110 | node-version: ${{ env.NODE_VERSION }} |
| 111 | + - uses: ./.github/actions/install-playwright |
| 112 | + - uses: ./.github/actions/install-couchdb |
| 113 | + with: |
104 | 114 | couchdb-version: ${{ matrix.couchdb }} |
| 115 | + - uses: ./.github/actions/build-pouchdb |
105 | 116 | - id: test |
106 | 117 | run: ${{ matrix.cmd }} |
107 | 118 | continue-on-error: true |
@@ -135,9 +146,10 @@ jobs: |
135 | 146 | ADAPTERS: ${{ matrix.adapter }} |
136 | 147 | steps: |
137 | 148 | - uses: actions/checkout@v4 |
138 | | - - uses: ./.github/actions/install-deps |
| 149 | + - uses: ./.github/actions/install-node-package |
139 | 150 | with: |
140 | 151 | node-version: ${{ matrix.node }} |
| 152 | + - uses: ./.github/actions/build-pouchdb |
141 | 153 | - id: test |
142 | 154 | run: ${{ matrix.cmd }} |
143 | 155 | continue-on-error: true |
@@ -172,9 +184,11 @@ jobs: |
172 | 184 | ADAPTERS: ${{ matrix.adapter }} |
173 | 185 | steps: |
174 | 186 | - uses: actions/checkout@v4 |
175 | | - - uses: ./.github/actions/install-deps |
| 187 | + - uses: ./.github/actions/install-node-package |
176 | 188 | with: |
177 | 189 | node-version: ${{ env.NODE_VERSION }} |
| 190 | + - uses: ./.github/actions/install-playwright |
| 191 | + - uses: ./.github/actions/build-pouchdb |
178 | 192 | - id: test |
179 | 193 | run: ${{ matrix.cmd }} |
180 | 194 | continue-on-error: true |
@@ -209,9 +223,12 @@ jobs: |
209 | 223 | SERVER: pouchdb-server |
210 | 224 | steps: |
211 | 225 | - uses: actions/checkout@v4 |
212 | | - - uses: ./.github/actions/install-deps |
| 226 | + - uses: ./.github/actions/install-node-package |
213 | 227 | with: |
214 | 228 | node-version: ${{ env.NODE_VERSION }} |
| 229 | + - if: ${{ matrix.client != 'node' }} |
| 230 | + uses: ./.github/actions/install-playwright |
| 231 | + - uses: ./.github/actions/build-pouchdb |
215 | 232 | - id: test |
216 | 233 | run: ${{ matrix.cmd }} |
217 | 234 | continue-on-error: true |
@@ -245,9 +262,10 @@ jobs: |
245 | 262 | runs-on: ubuntu-latest |
246 | 263 | steps: |
247 | 264 | - uses: actions/checkout@v4 |
248 | | - - uses: ./.github/actions/install-deps |
| 265 | + - uses: ./.github/actions/install-node-package |
249 | 266 | with: |
250 | 267 | node-version: ${{ matrix.node }} |
| 268 | + - uses: ./.github/actions/build-pouchdb |
251 | 269 | - id: test |
252 | 270 | run: ${{ matrix.cmd }} |
253 | 271 | continue-on-error: true |
|
0 commit comments