Skip to content

Commit

Permalink
add npm test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anas Abbal authored and Anas Abbal committed Jul 11, 2024
1 parent f33371a commit afd777b
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,28 @@ jobs:
app: [driver, notification, gateway, ride, user-service, auth, user]

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Install dependencies for ${{ matrix.app }}
working-directory: apps/${{ matrix.app }}
run: npm install
- name: Run tests for all apps
run: npm run test

- name: Install dependencies for ${{ matrix.app }}
working-directory: apps/${{ matrix.app }}
run: npm install

- name: Start ${{ matrix.app }}
working-directory: apps/${{ matrix.app }}
run: nest start ${{ matrix.app }} &
- name: Start ${{ matrix.app }}
working-directory: apps/${{ matrix.app }}
run: nest start ${{ matrix.app }} &

- name: Run tests for all apps
run: npm run test



0 comments on commit afd777b

Please sign in to comment.