Skip to content

Commit

Permalink
chore: setting up gh actions for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arakakimath committed Feb 24, 2025
1 parent 4931e19 commit c3c3e73
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run Tests

on:
push:
branches:
- integration-layer

jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest

services:
mongo:
image: mongo:latest
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: docker
MONGO_INITDB_ROOT_PASSWORD: docker
MONGO_INITDB_DATABASE: order-logistics-api

steps:
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm test
- run: npm run test:e2e
env:
DATABASE_URL: "mongodb://docker:docker@localhost:27017/order-logistics-api?authSource=admin"
NODE_ENV: "test"

0 comments on commit c3c3e73

Please sign in to comment.