Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Gurtzick <[email protected]>
  • Loading branch information
wzrdtales committed Sep 10, 2023
1 parent ec38e32 commit 3fdecf5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, latest]
fail-fast: false

steps:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: "4.4"
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm i -g [email protected]
- run: npm ci
- run: cp test/db.config.ci test/db.config.json
- run: npm test

0 comments on commit 3fdecf5

Please sign in to comment.