Skip to content

Commit

Permalink
Merge pull request #84 from Losant/SP-13329
Browse files Browse the repository at this point in the history
[SP-13329] housekeeping on cosa
  • Loading branch information
spacetc62 authored Aug 30, 2024
2 parents 0d49715 + 49da74c commit faea368
Show file tree
Hide file tree
Showing 7 changed files with 1,562 additions and 1,530 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run Tests

on:
push:
branches:
- master
pull_request:
types: ['opened', 'reopened', 'synchronize']

jobs:
test:
strategy:
matrix:
nodejs: [ '18', '20', '22' ]
mongodb-version: ['6.0', '7.0' ]
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
pull-requests: write
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.nodejs }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.nodejs }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: rs0
- run: npm install -g [email protected]
- run: yarn install --frozen-lockfile
- run: yarn test
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.16.0
20.16.0
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cosa

[![Build Status](https://travis-ci.com/Losant/cosa.svg?branch=master)](https://travis-ci.com/Losant/cosa) [![npm version](https://badge.fury.io/js/cosa.svg)](https://badge.fury.io/js/cosa)
![Build Status](https://github.com/Losant/cosa/actions/workflows/test.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/cosa.svg)](https://badge.fury.io/js/cosa)

Simplified object modeling for MongoDB

Expand Down
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "cosa",
"version": "8.0.0",
"version": "9.0.0",
"description": "Cosa Models for MongoDB",
"main": "lib/index.js",
"type": "module",
"engines": {
"node": ">=16",
"node": ">=18",
"yarn": ">=1.2.1"
},
"scripts": {
Expand All @@ -16,8 +16,7 @@
"reinstall": "rm -rf node_modules && yarn install",
"test": "NODE_ENV='test' COSA_DB_URI='mongodb://localhost:27017/test' mocha",
"test-debug": "yarn test --debug-brk",
"doc": "documentation build lib/index.js -f md --github > API.md",
"prepare": "husky install"
"doc": "documentation build lib/index.js -f md --github > API.md"
},
"author": "Losant <[email protected]>",
"license": "MIT",
Expand All @@ -37,23 +36,23 @@
],
"dependencies": {
"clone": "^2.1.2",
"debug": "^4.3.4",
"debug": "^4.3.6",
"error": "^7.0.2",
"etag": "^1.8.1",
"joi": "^17.9.2",
"mongodb": "~6.3.0",
"joi": "^17.13.3",
"mongodb": "~6.8.0",
"object-path": "^0.11.8",
"omnibelt": "^3.1.2"
"omnibelt": "Losant/omnibelt#SP-13326"
},
"devDependencies": {
"@losant/eslint-config-losant": "^1.6.1",
"husky": "^9.0.10",
"lint-staged": "~15.2.1",
"chai": "^5.0.3",
"chai-as-promised": "^7.1.1",
"husky": "^9.1.5",
"lint-staged": "~15.2.9",
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
"chai-datetime": "^1.8.0",
"documentation": "^14.0.2",
"mocha": "^10.2.0",
"mocha": "^10.7.3",
"string-template": "^1.0.0"
},
"eslintConfig": {
Expand Down
Loading

0 comments on commit faea368

Please sign in to comment.