-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* introduced new item configuration syntax using device metadata concept * added new device capabilities for camera, door/window covering, fan, networking and vacuum * improved security arm state error handling * added input custom mappings support * added playback stop and thermostat hold/fan capabilities support * added new custom asset ids and semantic extensions * added switch support to mode generic capability * improved dimmer/rollershutter support for range value generic capability * updated test suite increasing code coverage * added support for ask-cli v2 using cloudformation deployer * improved ci integration with automated production release deployment * added github action to update repository locales on crowdin changes * deprecated item sensor concept for decouple state support on specific capabilities * removed item tag support for oh3.x * removed alexa smarthome api v2 support Signed-off-by: jsetton <jeremy.setton@gmail.com>
- Loading branch information
Showing
473 changed files
with
51,216 additions
and
19,321 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: [ lambda/** ] | ||
pull_request: | ||
branches: [ main ] | ||
paths: [ lambda/** ] | ||
|
||
jobs: | ||
test: | ||
name: Code Testing | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
cache-dependency-path: lambda/package-lock.json | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: lambda | ||
|
||
- name: Run tests | ||
run: npm run test:coverage | ||
working-directory: lambda | ||
|
||
- name: Upload coverage report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage-report | ||
path: lambda/coverage | ||
|
||
codeql: | ||
name: Code Analysis | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: javascript | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Deployment | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
workflow_dispatch: | ||
inputs: | ||
pr: | ||
description: Pull Request (development) | ||
required: false | ||
tag: | ||
description: Release Version (live) | ||
required: false | ||
|
||
env: | ||
DEPLOY_ENV: ${{ (github.event_name == 'release' || github.event.inputs.tag) && 'live' || 'development' }} | ||
|
||
jobs: | ||
skill: | ||
name: Skill Deployment | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.inputs.pr && format('refs/pull/{0}/merge', github.event.inputs.pr) || github.event.inputs.tag }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
cache: npm | ||
cache-dependency-path: lambda/package-lock.json | ||
|
||
- name: Install ASK CLI | ||
run: npm install -g jsetton/ask-cli | ||
|
||
- name: Cache ASK CLI states | ||
uses: actions/cache@v2 | ||
with: | ||
path: .ask/ask-states.json | ||
key: ask-states-${{ env.DEPLOY_ENV }} | ||
|
||
- name: Generate deployment config | ||
run: node tools/generateDeployConfig.js | ||
env: | ||
FUNCTION_NAME: ${{ env.DEPLOY_ENV == 'live' && 'openhab-alexa' || 'openhab-alexa-beta' }} | ||
LOG_LEVEL: ${{ env.DEPLOY_ENV == 'live' && 'error' || 'info' }} | ||
S3_BUCKET_NA: ${{ secrets.S3_BUCKET_NA }} | ||
S3_BUCKET_EU: ${{ secrets.S3_BUCKET_EU }} | ||
S3_BUCKET_FE: ${{ secrets.S3_BUCKET_FE }} | ||
SKILL_ID: ${{ secrets.SKILL_ID }} | ||
TESTING_USERNAME: ${{ secrets.TESTING_USERNAME }} | ||
TESTING_PASSWORD: ${{ secrets.TESTING_PASSWORD }} | ||
|
||
- name: Deploy skill and AWS resources | ||
run: ask deploy | ||
env: | ||
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
ASK_ACCESS_TOKEN: ${{ secrets.ASK_ACCESS_TOKEN }} | ||
ASK_REFRESH_TOKEN : ${{ secrets.ASK_REFRESH_TOKEN }} | ||
ASK_VENDOR_ID: ${{ secrets.ASK_VENDOR_ID }} | ||
ASK_SHARE_USAGE: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: [ '**.md' ] | ||
pull_request: | ||
branches: [ main ] | ||
paths: [ '**.md' ] | ||
|
||
jobs: | ||
markdown: | ||
name: Markdown Linting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Lint Markdown files | ||
uses: nosborn/github-action-markdown-cli@v2 | ||
with: | ||
files: '**.md' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Locale | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: [ resources/locales/** ] | ||
|
||
jobs: | ||
update: | ||
name: Locale Updates | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Update skill locale | ||
run: node tools/updateSkillLocale.js | ||
|
||
- name: Check for changes to commit | ||
id: changes | ||
run: test -n "$(git status -suno)" | ||
continue-on-error: true | ||
|
||
- name: Commit and push changes | ||
if: steps.changes.outcome == 'success' | ||
run: | | ||
git config user.name openhab-bot | ||
git config user.email bot@openhab.org | ||
git commit -a -m "New locale updates" | ||
git push |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
default: true | ||
|
||
# Line length | ||
MD013: false | ||
# Multiple top-level headings in the same document | ||
MD025: false | ||
# Inline HTML | ||
MD033: | ||
allowed_elements: [a, br, img] |
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
Oops, something went wrong.