Skip to content

Commit 17ad9f1

Browse files
committed
test(CI): remove leveldb and memory, use Node.js 22
1 parent 3bd2602 commit 17ad9f1

1 file changed

Lines changed: 4 additions & 58 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
fail-fast: false
7070
matrix:
7171
couchdb: ['2.3', '3.1']
72-
node: [20, 22]
72+
node: [22]
7373
cmd:
7474
- npm test
7575
- TYPE=find PLUGINS=pouchdb-find ADAPTERS=http npm test
@@ -158,60 +158,6 @@ jobs:
158158
if: steps.retry.outcome == 'failure'
159159
run: ${{ matrix.cmd }}
160160

161-
# Run the integration, find and mapreduce tests against all the Node.js
162-
# PouchDB adapters. This should be run for every adapter on every version of
163-
# Node.js we support.
164-
165-
nodejs-adapter:
166-
needs: lint
167-
strategy:
168-
fail-fast: false
169-
matrix:
170-
node: [20, 22]
171-
adapter: ['leveldb', 'memory']
172-
cmd:
173-
- npm test
174-
- TYPE=find PLUGINS=pouchdb-find npm test
175-
- TYPE=mapreduce npm test
176-
runs-on: ubuntu-latest
177-
services:
178-
couchdb:
179-
image: couchdb:3.1
180-
ports:
181-
- 5984:5984
182-
env:
183-
COUCHDB_USER: admin
184-
COUCHDB_PASSWORD: password
185-
env:
186-
CLIENT: node
187-
SERVER: couchdb-master
188-
COUCH_HOST: http://admin:password@127.0.0.1:5984
189-
SKIP_MIGRATION: 1
190-
ADAPTERS: ${{ matrix.adapter }}
191-
steps:
192-
- uses: actions/checkout@v4
193-
with:
194-
persist-credentials: false
195-
- name: Wait for CouchDB
196-
run: ./bin/wait-for-couch.sh 20
197-
- name: Setup CouchDB CORS
198-
run: curl 'http://admin:password@127.0.0.1:5984/_node/_local/_config/cors/origins' -X PUT -d '"http://127.0.0.1:8000"'
199-
- uses: ./.github/actions/install-node-package
200-
with:
201-
node-version: ${{ matrix.node }}
202-
- uses: ./.github/actions/build-pouchdb
203-
- id: test
204-
run: ${{ matrix.cmd }}
205-
continue-on-error: true
206-
- name: First retry
207-
id: retry
208-
if: steps.test.outcome == 'failure'
209-
run: ${{ matrix.cmd }}
210-
continue-on-error: true
211-
- name: Second retry
212-
if: steps.retry.outcome == 'failure'
213-
run: ${{ matrix.cmd }}
214-
215161
# Run the integration, find and mapreduce tests against all the browser-based
216162
# adapters. PouchDB adapters. This should be run for every adapter on every
217163
# target browser.
@@ -222,7 +168,7 @@ jobs:
222168
fail-fast: false
223169
matrix:
224170
client: ['firefox', 'chromium', 'webkit']
225-
adapter: ['idb', 'indexeddb', 'memory']
171+
adapter: ['idb', 'indexeddb']
226172
cmd:
227173
- npm test
228174
- TYPE=find PLUGINS=pouchdb-find npm test
@@ -275,7 +221,7 @@ jobs:
275221
strategy:
276222
fail-fast: false
277223
matrix:
278-
node: [20, 22]
224+
node: [22]
279225
cmd:
280226
- CLIENT=firefox npm run test-webpack
281227
- AUTO_COMPACTION=true npm test
@@ -324,7 +270,7 @@ jobs:
324270
strategy:
325271
fail-fast: false
326272
matrix:
327-
node: [20, 22]
273+
node: [22]
328274
cmd:
329275
- TYPE=performance npm test
330276
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)