Skip to content

Commit

Permalink
🐛 Usar node LTS en prueba
Browse files Browse the repository at this point in the history
  • Loading branch information
1cgonza committed Dec 2, 2023
1 parent 6081826 commit 4557e45
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions .github/workflows/estilo-codigo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,22 @@ on:

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [16]
runs-on: ubuntu-latest

steps:
- name: Extraer cambios del repositorio 🛎
uses: actions/checkout@master

- name: Configurar ambiente de Node 🏗
uses: actions/[email protected]
- name: 🐯 Obtener código del repositorio
uses: actions/checkout@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
fetch-depth: 0

- name: Configurar Yarn 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules 📦
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- name: 🐝 Usar Node
uses: actions/setup-node@v3
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/*'

- name: 🦒 Instalar dependencias
run: |
yarn install --frozen-lockfile
- name: Comprobar estilo del código 👀
- name: 👀 Buscar errores
run: yarn lint

0 comments on commit 4557e45

Please sign in to comment.