Skip to content

Commit

Permalink
Elimination of tests to speed up workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarDavilaSampedro committed May 2, 2023
1 parent a5a1922 commit eaa674e
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/lomap_es1b1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,9 @@ on:
- develop

jobs:
unit-tests:
runs-on: ubuntu-20.04
env:
REACT_APP_MONGODB_URI: ${{ secrets.MONGODB_URI }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm --prefix webapp ci
- run: npm --prefix restapi ci
- run: npm --prefix webapp test --coverage --watchAll
- run: npm --prefix restapi test --coverage --watchAll
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- 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
env:
REACT_APP_MONGODB_URI: ${{ secrets.MONGODB_URI }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm --prefix webapp install
- run: npm --prefix restapi install
- run: npm --prefix webapp run build
- run: npm --prefix webapp run test:e2e
docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
runs-on: ubuntu-latest
# needs: [e2e-tests]
steps:
- uses: actions/checkout@v3
- name: Publish to Registry
Expand All @@ -70,7 +33,6 @@ jobs:
docker-push-restapi:
name: Push restapi Docker Image to GitHub Packages
runs-on: ubuntu-latest
# needs: [e2e-tests]
steps:
- uses: actions/checkout@v3
- name: Publish to Registry
Expand Down

0 comments on commit eaa674e

Please sign in to comment.