From 3fa22103d789ee0e580d661508886ef1f937ba25 Mon Sep 17 00:00:00 2001 From: Albert Hernandez Pellicer Date: Sun, 11 Feb 2024 15:59:08 +0100 Subject: [PATCH] ci(github): added name to the steps and emojis --- .github/workflows/node.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 8d818bc..04253e5 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -1,3 +1,4 @@ +--- name: 'Node' on: @@ -7,18 +8,25 @@ jobs: run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/cache@v4 - id: cache-node_module + - name: Checkout 🛬 + uses: actions/checkout@v4 + - name: Cache Dependencies ⌛️ + uses: actions/cache@v4 + id: cache-node-modules with: path: 'node_modules' key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/workflows/node.yml') }} - - uses: actions/setup-node@v4 + - name: Setup Node ⚙️ + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' - - run: npm ci - if: steps.cache-node_module.outputs.cache-hit != 'true' - - run: npm run build - - run: npm run lint - - run: npm run test + - name: Install dependencies 📥 + if: steps.cache-node-modules.outputs.cache-hit != 'true' + run: npm ci + - name: Build typescript 📦 + run: npm run build + - name: Lint code 💅 + run: npm run lint + - name: Run tests ✅ + run: npm run test