Skip to content

Commit

Permalink
ci(github): added name to the steps and emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Hernandez Pellicer committed Feb 11, 2024
1 parent 62d1276 commit 3fa2210
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: 'Node'

on:
Expand All @@ -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

0 comments on commit 3fa2210

Please sign in to comment.