Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "main", "MVP" ]
pull_request:
branches: [ "main", "MVP" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- 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
- run: npm run test-with-coverage
17 changes: 13 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
// FIXME: should not be necessary
process.env.CDS_ENV = 'better-sqlite'
process.env.CDS_ENV = "better-sqlite";

const config = {
testTimeout: 42222,
testMatch: ['**/*.test.js']
}
testMatch: ["**/*.test.js"],
verbose: true,
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
}
}
};

module.exports = config
module.exports = config;
Loading