ref: Refactor photodiodeSpot
and photodiodeGhostBox
#132
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 | |
# Runs the build and test scripts on PR | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-test: | |
name: 🧪 Build and Test | |
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@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: 🐍 Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
# Install dependencies and set up environment | |
- name: 📥 Install Dependencies | |
run: npm ci | |
- name: 🔃 Load .env file (.env.${{matrix.setting}}) | |
uses: xom9ikk/dotenv@v2 | |
with: | |
path: ./env | |
mode: ${{matrix.setting}} | |
# Test and build the app | |
- name: 🧪 Run Test | |
run: npm test | |
env: | |
CI: true | |
- name: 🔬 Lint | |
run: npm run lint | |
- name: ⚒ Run Build | |
run: npm run build |