Skip to content

js-soft/ferretdb-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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/ferretdb-github-action@1.1.0
        with:
          ferretdb-version: 1.12.1

      - run: npm install
      - run: npm test

License

MIT