Update README.md #406
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
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/authservice ci | |
- run: npm --prefix users/userservice ci | |
- run: npm --prefix gatewayservice ci | |
- run: npm --prefix webapp ci | |
- run: npm --prefix storeQuestionService ci | |
- run: npm --prefix userStatsService ci | |
- run: npm --prefix gameservice ci | |
- run: npm --prefix apisgatewayservice ci | |
- run: npm --prefix questionsservice ci | |
- run: npm --prefix questionsservice/questiongeneratorservice ci | |
- run: npm --prefix questionsservice/wikidataExtractor ci | |
- run: npm --prefix users/authservice test -- --coverage | |
- run: npm --prefix users/userservice test -- --coverage | |
- run: npm --prefix gatewayservice test -- --coverage | |
- run: npm --prefix webapp test -- --coverage | |
- run: npm --prefix storeQuestionService test -- --coverage | |
- run: npm --prefix userStatsService test -- --coverage | |
- run: npm --prefix gameservice test -- --coverage | |
- run: npm --prefix apisgatewayservice test -- --coverage | |
- run: npm --prefix questionsservice/questiongeneratorservice test -- --coverage | |
- run: npm --prefix questionsservice/wikidataExtractor 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/authservice install | |
- run: npm --prefix users/userservice install | |
- run: npm --prefix gameservice install | |
- run: npm --prefix storeQuestionService install | |
- run: npm --prefix userStatsService install | |
- run: npm --prefix gatewayservice install | |
- run: npm --prefix webapp install | |
- run: npm --prefix webapp run build | |
- run: npm --prefix webapp run test:e2e |