Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/jesvinser.yml
Original file line number Diff line number Diff line change
@@ -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

39 changes: 39 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -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) }}'