Skip to content

Commit

Permalink
Merge pull request #224 from Arquisoft/develop
Browse files Browse the repository at this point in the history
Arreglos Versión Final
  • Loading branch information
Tora-U00F1-o authored May 2, 2022
2 parents 229853d + c15304c commit b9b60c7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 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
2 changes: 1 addition & 1 deletion webapp/src/components/Catalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Catalog(rockListPros: RockListProps): JSX.Element {
densityMinStr = query.get("densityMin"),
densityMaxStr = query.get("densityMax"),
priceMinStr = query.get("priceMin"),
priceMaxStr = query.get("pirceMax");
priceMaxStr = query.get("priceMax");
var nameSubstring = query.get("nameSubstring");
var typeSearched = query.get("type");

Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function RegisterForm(): JSX.Element {
repPass: String
) => {
axios
.post("http://localhost:5000/user/signup", {
.post( ("http://localhost:5000/users/add"|| process.env.REACT_APP_API_URI +"/users/add"), {
name: name,
dni: dni,
email: email,
Expand Down

0 comments on commit b9b60c7

Please sign in to comment.