diff --git a/.github/workflows/estilo-codigo.yml b/.github/workflows/estilo-codigo.yml index 8e45440..4517761 100644 --- a/.github/workflows/estilo-codigo.yml +++ b/.github/workflows/estilo-codigo.yml @@ -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/checkout@v3.0.0 - - - name: Preparar ambiente Node ๐Ÿ— - uses: actions/setup-node@v3.0.0 + - 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/cache@v2.1.7 - 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