Skip to content

Commit

Permalink
fix(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Nov 7, 2024
1 parent 3d8cae5 commit 10704d4
Showing 1 changed file with 64 additions and 13 deletions.
77 changes: 64 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ env:
FOLDER_PATH_STORYBOOK_BUILD: ./build-storybook-static

jobs:
setup:
name: Setup 🔧
build:
name: Build 🏗️
runs-on: ubuntu-latest
outputs:
cache-hit: ${{ steps.cache_dependencies.outputs.cache-hit }}

steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
Expand All @@ -33,35 +30,81 @@ jobs:
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci

build:
name: Build 🏗️
runs-on: ubuntu-latest
needs: setup
steps:
- name: Build 🏗️
run: npm run build

lint:
name: Lint ✅
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache dependencies ⚡
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies 🔧
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci

- name: Lint ✅
run: npm run lint

tsc:
name: TypeScript Compiler 🔎
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache dependencies ⚡
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies 🔧
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci

- name: TypeScript Compiler 🔎
run: npm run tsc

test:
name: Test 🧪
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache dependencies ⚡
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies 🔧
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci

- name: Test 🧪
run: npm run test-report

Expand All @@ -85,6 +128,10 @@ jobs:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies 🔧
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci

- name: Build 🏗️
run: npm run storybook-build

Expand Down Expand Up @@ -115,6 +162,10 @@ jobs:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies 🔧
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci

- name: Version Info 💉
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 10704d4

Please sign in to comment.