Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test-dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Dashboard

on:
pull_request:
paths:
- 'songbird-dashboard/**'
- '.github/workflows/test-dashboard.yml'

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: songbird-dashboard

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: songbird-dashboard/package-lock.json

- name: Install dependencies
run: npm ci

- name: Type check
run: npx tsc --noEmit

- name: Run tests
run: npm test
29 changes: 29 additions & 0 deletions .github/workflows/test-firmware.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test Firmware

on:
pull_request:
paths:
- 'songbird-firmware/**'
- '.github/workflows/test-firmware.yml'

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: songbird-firmware

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install PlatformIO
run: pip install platformio

- name: Run tests
run: pio test -e native
34 changes: 34 additions & 0 deletions .github/workflows/test-infrastructure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Infrastructure

on:
pull_request:
paths:
- 'songbird-infrastructure/**'
- '.github/workflows/test-infrastructure.yml'

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: songbird-infrastructure

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: songbird-infrastructure/package-lock.json

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run tests
run: npm test
Loading
Loading