Skip to content

TELESTION-462 Make widgets configurable (#418) #368

TELESTION-462 Make widgets configurable (#418)

TELESTION-462 Make widgets configurable (#418) #368

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: '20'
pnpm: '8'
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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