Skip to content

Commit

Permalink
Merge pull request #20 from MostafaAE/orders-service
Browse files Browse the repository at this point in the history
Add test workflow for orders service
  • Loading branch information
MostafaAE authored Apr 18, 2024
2 parents fdca0c9 + 15622ec commit e5ea401
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/tests-orders.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: tests-orders

on: pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cd orders && npm install && npm run test:ci
3 changes: 2 additions & 1 deletion orders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"start": "ts-node-dev --poll src/index.ts ",
"test": "jest --watchAll --no-cache"
"test": "jest --watchAll --no-cache",
"test:ci": "jest"
},
"jest": {
"preset": "ts-jest",
Expand Down

0 comments on commit e5ea401

Please sign in to comment.