-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
1 changed file
with
16 additions
and
27 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Estilo Código | ||
name: 🐾 Estilo Código | ||
|
||
on: | ||
push: | ||
|
@@ -10,37 +10,26 @@ on: | |
|
||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [16] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎 | ||
uses: actions/[email protected] | ||
|
||
- name: Preparar ambiente Node 🏗 | ||
uses: actions/[email protected] | ||
- name: 🐯 Obtener código del repositorio | ||
uses: actions/checkout@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
check-latest: true | ||
fetch-depth: 0 | ||
|
||
- name: Obtener cache de yarn 🛠 | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- name: 🐜 Activar Corepack | ||
run: corepack enable | ||
|
||
- name: Cache node_modules 📦 | ||
uses: actions/[email protected] | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- name: 🐝 Usar Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Instalar dependencias 👨🏻💻 | ||
run: yarn | ||
node-version: 'lts/*' | ||
cache: 'yarn' | ||
|
||
- name: 🦒 Instalar dependencias | ||
run: | | ||
yarn install --immutable | ||
- name: Revisar estilos 👀 | ||
- name: 👀 Buscar errores | ||
run: yarn lint |