Skip to content

pabloYalberto work on style and format of the application #435

pabloYalberto work on style and format of the application

pabloYalberto work on style and format of the application #435

Workflow file for this run

name: Build
on:
push:
branches: [master, develop, develop-deploy, develop-teresa, develop_samuel]
pull_request:
types: [opened, synchronize, reopened]
branches: [master, develop, develop-deploy]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm --prefix users ci
- run: npm --prefix questions ci
- run: npm --prefix gatewayservice ci
- run: npm --prefix webapp ci
- run: npm --prefix multiplayer ci
- run: npm --prefix users test -- --coverage
- run: npm --prefix questions test -- --coverage
- run: npm --prefix gatewayservice test -- --coverage
- run: npm --prefix webapp test -- --coverage
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
e2e-tests:
needs: [unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm --prefix users install
- run: npm --prefix questions install
- run: npm --prefix gatewayservice install
- run: npm --prefix webapp install
- run: npm --prefix webapp run build
- run: npm --prefix webapp run test:e2e