Skip to content

Commit

Permalink
Added deploy workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciamears committed Dec 3, 2024
1 parent 0bf8094 commit 398f36c
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Demployment Excercise 1
on: [push]
jobs:
#Nombre del job tu lo pones como quieras:
deploy:
#Asignano OS de Runner:
runs-on: ubuntu-latest
steps:
- name: Checkout
#Utilizando Action para obtener codigo, oficial (GitHub)
uses: actions/checkout@v3
- name: Install dependencies
#Ejecutando comando para instalar dependencias (En Shell)
#Siempre con "run"
run: npm ci
- name: Lint
#Ejecutando comando para Lint (En Shell)
run: npm run lint
- name: Test
#Ejecutando comando para Test (En Shell)
run: npm test
- name: Build
#Ejecutando comando para contruir el codigo (Build En Shell)
run: npm run build
- name: Deploy Code
#Ejecutando comando para desplegar el codigo (Deploy En Shell)
run: echo "Deploying....."
36 changes: 36 additions & 0 deletions .github/workflows/deployment2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Demployment Excercise 1
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Deploy Code
run: echo "Deploying....."

0 comments on commit 398f36c

Please sign in to comment.