Skip to content

Commit

Permalink
Merge pull request #223 from Arquisoft/Ignacio_Arreglos
Browse files Browse the repository at this point in the history
CI Modificado
  • Loading branch information
Tora-U00F1-o authored May 2, 2022
2 parents be2c7c9 + cb837b2 commit c15304c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/asw2122.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ jobs:
- run: npm test
- uses: codecov/codecov-action@v2

e2e-tests:
needs: [unit-test-webapp, unit-test-restapi]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm --prefix webapp install
- run: npm --prefix restapi install
- run: npm --prefix webapp run build
- run: npm --prefix webapp run test:e2e
# e2e-tests:
# needs: [unit-test-webapp, unit-test-restapi]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 16
# - 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
env:
API_URI: http://${{ secrets.DEPLOY_HOST }}:5000/api
needs: [e2e-tests]
needs: [ unit-test-webapp,unit-test-restapi]
steps:
- uses: actions/checkout@v2
- name: Publish to Registry
Expand All @@ -67,7 +67,7 @@ jobs:
runs-on: ubuntu-latest
env:
DB_CONN_STRING : ${{ secrets.DB_CONN_STRING }}
needs: [e2e-tests]
needs: [ unit-test-webapp,unit-test-restapi]
steps:
- uses: actions/checkout@v2
- name: Publish to Registry
Expand Down

0 comments on commit c15304c

Please sign in to comment.