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.
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