Whilst the Frigate support in this card is the best among camera engines, the name incorrectly suggests that Frigate is a requirement. Instead, to broaden the appeal, change to more camera agnostic name. This does not suggest any change in priority, role or support for Frigate. This change is likely to be bug prone, due to the size of the rename -- the code contains 1500+ references to "Frigate" most of which make sense to rename, some which do not, all of which needed human assessment. - Closes #1298 BREAKING CHANGE: References to `frigate-card` in all kinds of configuration need to be updated to `advanced-camera-card`. An automated config upgrade should take care of the majority of usecases (click `Edit -> Upgrade -> Save`), though may not be perfect.
62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
---
|
|
name: 'Build'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
pull_request:
|
|
schedule:
|
|
- cron: '17 6 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Test build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node and Yarn
|
|
uses: volta-cli/action@v4
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --immutable
|
|
|
|
- name: Lint
|
|
run: yarn run lint
|
|
|
|
- name: Check formatting
|
|
run: yarn run format-check
|
|
|
|
- name: Test & Coverage
|
|
run: yarn run coverage
|
|
|
|
- name: Build
|
|
run: yarn run build
|
|
|
|
- name: HACS build validation
|
|
uses: 'hacs/action@21.12.1'
|
|
with:
|
|
category: 'plugin'
|
|
|
|
# Don't attempt to load into HACS (as it loads the release, not the
|
|
# build).
|
|
ignore: 'hacs'
|
|
|
|
- name: Upload javascript
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: advanced-camera-card
|
|
path: dist/*.js
|
|
|
|
# When this issue is fixed, it would be useful to upload visualizations:
|
|
# https://github.com/actions/upload-artifact/issues/14
|
|
# - name: Upload visualizations
|
|
# uses: actions/upload-artifact@v4
|
|
# with:
|
|
# name: advanced-camera-card
|
|
# path: visualizations/*.html
|