build(frontend-react): ⬆️ Upgrade frontend dependencies #414
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |