Created main.yaml #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: My first CI/CD pipeline | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download repository | |
uses: actions/checkout@v2 | |
- name: Install JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn clean package -DskipTests | |
- name: Upload package .jar to deploy later | |
uses: actions/upload-artifact@v2 | |
with: | |
name: moviecards-java | |
path: "${{ github.workspace }}/target/*.jar" | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: test | |
run: echo "Ejecutando pruebas!" | |
qa: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: qa | |
run: echo "Ejecutando análisis de calidad!" | |
deploy: | |
needs: qa | |
runs-on: ubuntu-latest | |
steps: | |
- name: deploy | |
run: echo "Desplegando la aplicación!" |