Skip to content

FerretDB in GitHub Actions

Actions
Start a FerretDB instance
1.1.1
Latest
Star (1)

FerretDB GitHub Action

Introduction

This GitHub Action starts a FerretDB instance and a connected PostgreSQL database. You can configure a custom port using the ferretdb-port input, by default it is the default MongoDB port 27017.

The FerretDB version can be specified using the ferretdb-version input. The default version is latest. You can find all available FerretDB versions on GitHub.

The FerretDB telemetry can be enabled using the ferretdb-telemetry input. The default value is disabled. Learn more about FerretDB's telemetry here.

By default FerretDB will be started using sqlite. By setting use-postgres to true you can switch the database engine to PostgreSQL.

Usage

name: Run tests

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

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

      - name: Use Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 18

      - name: Start FerretDB
        uses: js-soft/[email protected]
        with:
          ferretdb-version: 1.12.1

      - run: npm install
      - run: npm test

License

MIT

FerretDB in GitHub Actions is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Start a FerretDB instance
1.1.1
Latest

FerretDB in GitHub Actions is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.