From 068c511aa6cf7adb088060e205d511985da3879f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Cadenas?= <77900120+andrrsin@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:25:12 +0200 Subject: [PATCH] e2e tests back --- .github/workflows/release.yml | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46490d1..8d121b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,20 +25,20 @@ jobs: 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 gatewayservice install - # - run: npm --prefix webapp install - # - run: CI=false npm --prefix webapp run build - # - run: CI=true npm --prefix webapp run test:e2e + 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 gatewayservice install + - run: npm --prefix webapp install + - run: CI=false npm --prefix webapp run build + - run: CI=true npm --prefix webapp run test:e2e docker-push-webapp: name: Push webapp Docker Image to GitHub Packages @@ -46,8 +46,8 @@ jobs: permissions: contents: read packages: write - # needs: [e2e-tests] - needs: [unit-tests] + needs: [e2e-tests] + # needs: [unit-tests] steps: - uses: actions/checkout@v4 - name: Publish to Registry @@ -67,8 +67,8 @@ jobs: permissions: contents: read packages: write - # needs: [e2e-tests] - needs: [unit-tests] + needs: [e2e-tests] + # needs: [unit-tests] steps: - uses: actions/checkout@v4 - name: Publish to Registry @@ -85,8 +85,8 @@ jobs: permissions: contents: read packages: write - # needs: [e2e-tests] - needs: [unit-tests] + needs: [e2e-tests] + # needs: [unit-tests] steps: - uses: actions/checkout@v4 - name: Publish to Registry @@ -103,8 +103,8 @@ jobs: permissions: contents: read packages: write - # needs: [e2e-tests] - needs: [unit-tests] + needs: [e2e-tests] + # needs: [unit-tests] steps: - uses: actions/checkout@v4 - name: Publish to Registry @@ -121,8 +121,8 @@ jobs: permissions: contents: read packages: write - # needs: [e2e-tests] - needs: [unit-tests] + needs: [e2e-tests] + # needs: [unit-tests] steps: - uses: actions/checkout@v4 - name: Publish to Registry