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
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Code owners: these owners will be requested for review when someone opens a PR.
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/codeowners

* @ManliestBen
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Run build and tests on push and pull requests.
# Branch protection can require this check before merging into dev or main.
# Flow: feature branches → PR into dev → PR from dev into main (deploy).
#
# No secrets required: all HA and Google Calendar API calls are mocked in tests.
# Tests never connect to your Home Assistant or Google—they cannot control real devices.

name: CI

on:
push:
branches: [dev, main, master]
pull_request:
branches: [dev, main, master]

jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Install root dependencies
run: npm ci

- name: Install dashboard dependencies
run: npm run install:dashboard

- name: Build
run: npm run build

- name: Test
run: npm test
Loading