Skip to content

Updated Readme

Updated Readme #4

name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
service:
[
user-service,
product-service,
shopping-cart-service,
order-service,
payment-service,
notification-service,
]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install
working-directory: ${{ matrix.service }}
- name: Run tests
run: npm test
working-directory: ${{ matrix.service }}