Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anasabbal authored Jun 9, 2024
1 parent fc8d889 commit 93acee7
Showing 1 changed file with 8 additions and 36 deletions.
44 changes: 8 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,45 +40,17 @@ jobs:
working-directory: apps/${{ matrix.app }}
run: npm install

- name: Build ${{ matrix.app }}
working-directory: apps/${{ matrix.app }}
run: npm run build
#- name: Build ${{ matrix.app }}
# working-directory: apps/${{ matrix.app }}
# run: npm run build

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

- name: Wait for service to be ready
run: sleep 10

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

lint:

runs-on: ubuntu-latest

strategy:
matrix:
app: [driver, notification, nuber-app, trip, user-service]

steps:
- name: Checkout code
uses: actions/checkout@v2
#- name: Wait for service to be ready
# run: sleep 10

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

- name: Install dependencies
run: npm install

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

- name: Lint ${{ matrix.app }}
working-directory: apps/${{ matrix.app }}
run: npm run lint
#- name: Run tests for ${{ matrix.app }}
# working-directory: apps/${{ matrix.app }}
# run: npm run test

0 comments on commit 93acee7

Please sign in to comment.