Skip to content
database

GitHub Action

CouchDB in GitHub Actions

0.3.0 Latest version

CouchDB in GitHub Actions

database

CouchDB in GitHub Actions

Start a CouchDB server (on port 5984)

Installation

Copy and paste the following snippet into your .yml file.

              

- name: CouchDB in GitHub Actions

uses: iamssen/couchdb-github-action@0.3.0

Learn more about this action in iamssen/couchdb-github-action

Choose a version

CouchDB Github Action

name: TEST

on: [push]

jobs:
  build:
    name: Test ${{ matrix.couchdb }}
    runs-on: ubuntu-latest
    strategy:
      matrix:
        couchdb: ["3.4", "3.3", "3.2", "3.1", "2.3"]

    steps:
      - name: Git checkout
        uses: actions/checkout@v2

      - name: Start CouchDB
        uses: iamssen/couchdb-github-action@master
        with:
          couchdb-version: ${{ matrix.couchdb }}

      - name: Test endpoint
        run: |
          curl -f http://127.0.0.1:5984/

      - name: Test auth
        run: |
          curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"name": "admin", "password": "password"}' http://127.0.0.1:5984/_session
  • endpoint : http://127.0.0.1:5984
  • auth
    • name : admin
    • password : password

Examples