Skip to content

Merge pull request #40 from aquie00tt/dependabot/npm_and_yarn/globals… #141

Merge pull request #40 from aquie00tt/dependabot/npm_and_yarn/globals…

Merge pull request #40 from aquie00tt/dependabot/npm_and_yarn/globals… #141

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:latest
ports:
- 27017:27017
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: npm install
- name: Run tests
env:
NODE_ENV: test
PORT: 8080
ALLOW_LIST: http://localhost:3000
API_VERSION: 1
MONGO_CONNECTION_URI: mongodb://localhost:27017/
MONGO_DATABASE_NAME: test-db
SALT_ROUNDS: 10 # Example value
SECRET_KEY: asdas # Example Value
EXPIRES_IN: 3600000 # Example Value
run: npm test
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build