Skip to content

Fix if condition.

Fix if condition. #83

Workflow file for this run

name: sonic-connect-gh-actions
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
test:
runs-on: ubuntu-latest
needs: lint
services:
mongodb:
image: mongo
ports:
- 27017:27017
env:
DB_CONN_STR: mongodb://127.0.0.1:27017
LOGIN_EXPIRES: 86400000 # 1 day in milliseconds
SECRET_STR: ${{ secrets.SECRET_STR }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Run test
run: npm test