From e1d5b64180571cc6f2e3173fd3b44040f90dd09d Mon Sep 17 00:00:00 2001 From: Mister-Mario Date: Mon, 8 Apr 2024 00:21:01 +0200 Subject: [PATCH] Modified realse.yml to include tests --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26d1dd2c..202b2c05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,30 @@ on: types: [published] jobs: + unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm --perfix questionservice ci + - run: npm --prefix users/recordservice ci + - run: npm --prefix users/authservice ci + - run: npm --prefix users/userservice ci + - run: npm --prefix gatewayservice ci + - run: npm --prefix webapp ci + - run: npm --perfix questionservice test -- --coverage + - run: npm --prefix users/recordservice test -- --coverage + - 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 + - name: Analyze with SonarCloud + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} docker-push-webapp: name: Push webapp Docker Image to GitHub Packages runs-on: ubuntu-latest