Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jperezsa2020 authored Jan 23, 2025
1 parent 86cdcf9 commit 3c19798
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,24 @@ jobs:
mvn clean package -DskipTests
nohup java -jar target/*.jar &
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.17.0

# Build y ejecución del Frontend (sin tests)
- name: Build and Run Angular Frontend
run: |
cd ./frontend
npm install
run build --prod
nohup ng serve --proxy-config proxy.conf.json
- name: Run Spring Boot tests
run: |
cd ./backend
mvn test
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -36,8 +49,5 @@ jobs:
- name: Build and push Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/java_app:2.0 -f docker/Dockerfile .
docker push ${{ secrets.DOCKER_USERNAME }}/java_app:2.0
docker push ${{ secrets.DOCKER_USERNAME }}/java_app:2.0

0 comments on commit 3c19798

Please sign in to comment.