Skip to content

style(frontend-react): Reformat code #407

style(frontend-react): Reformat code

style(frontend-react): Reformat code #407

name: Frontend React CI
# Events that trigger this workflow
on: [push, pull_request]
# Defines which tool versions should be used in all workflow jobs
env:
node: '22'
pnpm: '9'
defaults:
run:
working-directory: ./frontend-react
jobs:
style:
name: Style
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
uses: actions/[email protected]
with:
node-version: ${{ env.node }}
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies 📚
run: pnpm install
- name: Check code style 🧽
run: pnpm run ci:style
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
uses: actions/[email protected]
with:
node-version: ${{ env.node }}
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies 📚
run: pnpm install
- name: Run Linter 📑
run: pnpm run lint
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
uses: actions/[email protected]
with:
node-version: ${{ env.node }}
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies 📚
run: pnpm install
- name: Build library 📦
run: pnpm run build
- name: Pack library 📦
run: pnpm pack
- name: Upload package artifact 📤
uses: actions/[email protected]
with:
name: package.tgz
path: ./frontend-react/wuespace-telestion-*.tgz
retention-days: 7
unit-test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
uses: actions/[email protected]
with:
node-version: ${{ env.node }}
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies 📚
run: pnpm install
- name: Run unit tests 🛃
run: |
pnpm run ci:test