Skip to content

Integrate Frontend logging in and signing up with User microservice #22

Integrate Frontend logging in and signing up with User microservice

Integrate Frontend logging in and signing up with User microservice #22

name: Backend Services Tests
# targeting pull requests to master branch
on:
pull_request:
branches: [master]
jobs:
coverage:
permissions:
checks: write
pull-requests: write
contents: write
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x]
service: [assignment-service]
steps:
- name: Checkout Current Branch
uses: actions/checkout@v4
- name: Use Node.js ${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- name: Clean up
run: |
rm -rf backend/${{matrix.service}}/node_modules
rm -rf backend/${{matrix.service}}/coverage
- name: Install Dependencies Using yarn
uses: borales/actions-yarn@v4
with:
cmd: install
dir: backend/${{matrix.service}}
- name: Run Tests and Collect Coverage Reports
env:
NODE_ENV: test
uses: borales/actions-yarn@v4
with:
cmd: test
dir: backend/${{matrix.service}}