fix(python): fix various bugs that were identified while implementing… #517
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/checkout@v3.6.0 | |
- name: Setup PNPM 💿 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ env.pnpm }} | |
- name: Setup Node 💿 | |
uses: actions/setup-node@v3.8.2 | |
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/checkout@v3.6.0 | |
- name: Setup PNPM 💿 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ env.pnpm }} | |
- name: Setup Node 💿 | |
uses: actions/setup-node@v3.8.2 | |
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/checkout@v3.6.0 | |
- name: Setup PNPM 💿 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ env.pnpm }} | |
- name: Setup Node 💿 | |
uses: actions/setup-node@v3.8.2 | |
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/upload-artifact@v3.1.3 | |
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/checkout@v3.6.0 | |
- name: Setup PNPM 💿 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ env.pnpm }} | |
- name: Setup Node 💿 | |
uses: actions/setup-node@v3.8.2 | |
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 |