Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianavillar committed Dec 20, 2024
1 parent b8a222c commit 4af809f
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,27 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: test
run: echo "Ejecutando pruebas!"
- name: Descargar repositorio
uses: actions/checkout@v2
- name: Instalar JDK 11
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: "adopt"
- name: Instalar Chrome y ChromeDriver para pruebas end to end
run: |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt --fix-broken install -y
CHROMEDRIVER_VERSION=$(curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
curl -L -o chromedriver.zip https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chr omedriver_linux64.zip
unzip chromedriver.zip
chmod +x chromedriver
sudo mv chromedriver /usr/local/bin/
- name: Ejecutar la aplicación para pruebas end to end
run: mvn spring-boot:run & sleep 60
- name: Ejecutar las pruebas unitarias, de integración y end to end
run: mvn clean verify

qa:
needs: test
Expand Down

0 comments on commit 4af809f

Please sign in to comment.