-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bf8094
commit 398f36c
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
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
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....." |
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
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....." |