Add cli register #788
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: 🏗️ Pull Request | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: 🧪 Build | |
runs-on: ${{ matrix.os }} | |
# Run action for [home/clinic] with in [windows/macOS/ubuntu] | |
strategy: | |
matrix: | |
setting: [home, clinic] | |
os: [windows-latest, macOS-latest, ubuntu-latest] | |
fail-fast: false # A failed build will not end the other matrix jobs | |
steps: | |
# Set up runner | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: 🐍 Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
# Install dependencies | |
- name: 🅿️ Install Python tools | |
run: pip install setuptools | |
- name: 📥 Install Dependencies | |
run: npm ci | |
# Set up the environment | |
- name: 🔃 Load .env file (.env.${{matrix.setting}}) | |
uses: xom9ikk/dotenv@v2 | |
with: | |
path: ./env | |
mode: ${{matrix.setting}} | |
# Lint the code | |
- name: 🔬 Lint | |
run: npm run lint -- --max-warnings=0 | |
# Build the app | |
- name: ⚒ Build | |
run: npm run build |