diff --git a/.github/workflows/jesvinser.yml b/.github/workflows/jesvinser.yml new file mode 100644 index 00000000..5107efc9 --- /dev/null +++ b/.github/workflows/jesvinser.yml @@ -0,0 +1,53 @@ +name: Flujo de trabajo para jesvinser + +on: + workflow_dispatch: + issues: + types: [opened, edited] + +jobs: + Build: + runs-on: ubuntu-latest + env: + GITHUB_LOGIN: ${{ github.actor }} + GITHUB_PACKAGES: ${{ secrets.GITHUB_TOKEN }} + GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Clonando el repositorio y estableciendo el espacio de trabajo + uses: actions/checkout@v3 + + - name: Configurando java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '16' + + - name: Construyendo el cรณdigo + run: | + chmod +x gradlew + ./gradlew assemble + + - name: Subiendo artefacto del build + uses: actions/upload-artifact@v4 + with: + name: build-output + path: build/libs/ + + Test: + runs-on: ubuntu-latest + needs: Build + steps: + - name: Clonando el repositorio y estableciendo el espacio de trabajo + uses: actions/checkout@v3 + + - name: Configurando java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '16' + + - name: Ejecutando los tests + run: | + chmod +x gradlew + ./gradlew test + diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 00000000..9ddc1041 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,39 @@ +name: Demostrador para Acciones GitHub + +on: + push: + workflow_dispatch: + +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "๐ŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "๐Ÿง This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "๐Ÿ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "๐Ÿ’ก The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "๐Ÿ–ฅ๏ธ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "๐Ÿ This job's status is ${{ job.status }}." + + dump_contexts_to_log: + needs: Explore-GitHub-Actions + runs-on: ubuntu-latest + steps: + - name: Mostrando contexto GitHub + id: github_context_step + run: echo '${{ toJSON(github) }}' + - name: Mostrando contexto job + run: echo '${{ toJSON(job) }}' + - name: Mostrando contexto steps + run: echo '${{ toJSON(steps) }}' + - name: Mostrando contexto runner + run: echo '${{ toJSON(runner) }}' + - name: Mostrando contexto strategy + run: echo '${{ toJSON(strategy) }}' + - name: Mostrando contexto matrix + run: echo '${{ toJSON(matrix) }}'