Skip to content

tidy up allDocs()

tidy up allDocs() #674

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore
# them, build the source code and run tests across different versions of node
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
#
# See supported Node.js release schedule at
# https://nodejs.org/en/about/releases/
name: PouchDB CI
on:
push: {}
pull_request:
branches: [master]
env:
NODE_VERSION: 14
TEST_HOST: localhost
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm run eslint
# Run the integration, find and mapreduce tests against all the browser-based
# adapters. PouchDB adapters. This should be run for every adapter on every
# target browser.
browser-adapter:
needs: lint
strategy:
fail-fast: false
matrix:
client: ['firefox', 'chromium']
adapter: ['indexeddb']
cmd:
- npm test
- TYPE=find PLUGINS=pouchdb-find npm test
- TYPE=mapreduce npm test
runs-on: ubuntu-latest
env:
POUCHDB_SRC: ../../packages/node_modules/pouchdb/dist/pouchdb.min.js
CLIENT: ${{ matrix.client }}
ADAPTERS: ${{ matrix.adapter }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
with:
node-version: ${{ env.NODE_VERSION }}
- id: test
run: ${{ matrix.cmd }}
continue-on-error: true
- name: First retry
id: retry
if: steps.test.outcome == 'failure'
run: ${{ matrix.cmd }}
continue-on-error: true
- name: Second retry
if: steps.retry.outcome == 'failure'
run: ${{ matrix.cmd }}