Skip to content

Created main.yaml

Created main.yaml #2

Workflow file for this run

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!"