Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #6

Merged
merged 2 commits into from
Oct 12, 2024
Merged
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
69 changes: 3 additions & 66 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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
# This workflow will do a clean installation of node dependencies, 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: Tests (main) & Deployment
Expand All @@ -16,13 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-18-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-18-
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
Expand All @@ -36,40 +29,24 @@ jobs:
needs: test-ubuntu-node-18
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm install jest npm install --save-dev @babel/preset-env @babel/core babel-jest

- run: npx jest --forceExit mongodb.test.js

test-ubuntu-node-22:
runs-on: ubuntu-latest
needs: test-ubuntu-node-20
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-22-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-22-
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm ci

- run: npm install jest npm install --save-dev @babel/preset-env @babel/core babel-jest
- run: npx jest --forceExit mongodb.test.js

Expand All @@ -78,13 +55,6 @@ jobs:
needs: test-ubuntu-node-22
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-18-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-18-
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
Expand All @@ -98,13 +68,6 @@ jobs:
needs: test-windows-node-18
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
Expand All @@ -118,13 +81,6 @@ jobs:
needs: test-windows-node-20
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-22-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-22-
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
Expand All @@ -138,13 +94,6 @@ jobs:
needs: test-windows-node-22
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-18-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-18-
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
Expand All @@ -158,36 +107,24 @@ jobs:
needs: test-macos-node-18
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm install jest npm install --save-dev @babel/preset-env @babel/core babel-jest
- run: npx jest --forceExit mongodb.test.js

test-macos-node-22:
runs-on: macos-latest
needs: test-macos-node-20
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-22-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-22-
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm ci
- run: npm install jest npm install --save-dev @babel/preset-env @babel/core babel-jest
- run: npx jest --forceExit mongodb.test.js

Expand Down
66 changes: 2 additions & 64 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-18-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-18-
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
Expand All @@ -34,13 +27,6 @@ jobs:
needs: test-ubuntu-node-18
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
Expand All @@ -54,13 +40,6 @@ jobs:
needs: test-ubuntu-node-20
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-22-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-22-
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
Expand All @@ -74,13 +53,6 @@ jobs:
needs: test-ubuntu-node-22
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-18-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-18-
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
Expand All @@ -94,13 +66,6 @@ jobs:
needs: test-windows-node-18
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
Expand All @@ -114,13 +79,6 @@ jobs:
needs: test-windows-node-20
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-22-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-22-
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
Expand All @@ -134,13 +92,6 @@ jobs:
needs: test-windows-node-22
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-18-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-18-
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
Expand All @@ -154,36 +105,23 @@ jobs:
needs: test-macos-node-18
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npx jest --forceExit memory.test.js
- run: npx jest --forceExit file.test.js

test-macos-node-22:
runs-on: macos-latest
needs: test-macos-node-20
steps:
- uses: actions/checkout@v4
- name: Cache NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-22-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-22-
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm install jest npm install --save-dev @babel/preset-env @babel/core babel-jest
- run: npx jest --forceExit memory.test.js
- run: npx jest --forceExit file.test.js
- run: npx jest --forceExit file.test.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seamless-auth",
"version": "3.7.6",
"version": "3.7.7",
"description": "A full fledged authentication system...",
"type": "commonjs",
"main": "memory.js",
Expand Down