-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
93 additions
and
21 deletions.
There are no files selected for viewing
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,67 @@ | ||
name: CI/CD | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm ci | ||
- run: npm run lint | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm ci | ||
- run: npm run build | ||
|
||
build: | ||
name: Build Docker image | ||
runs-on: ubuntu-latest | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
needs: | ||
- lint | ||
- test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: home-assistant/builder@master | ||
with: | ||
args: | | ||
--test \ | ||
--all \ | ||
--target . \ | ||
--docker-hub ghcr.io/bokub | ||
publish: | ||
name: Build and publish Docker image | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') # Invert | ||
needs: | ||
- lint | ||
- test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: bokub | ||
password: ${{ secrets.CR_PAT }} | ||
- uses: home-assistant/builder@master | ||
with: | ||
args: | | ||
--all \ | ||
--target . \ | ||
--docker-hub ghcr.io/bokub |
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# HA Linky | ||
# Home Assistant Linky Add-on | ||
|
||
> A **Home Assistant** add-on to sync Energy dashboards with your **Linky** smart meter |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"name": "ha-linky", | ||
"private": true, | ||
"version": "1.0.0", | ||
"description": "Home Assistant add-on for Linky smart meters", | ||
"version": "0.1.0", | ||
"description": "Home Assistant add-on to sync Energy dashboards with Linky smart meters", | ||
"author": "First Last <[email protected]>", | ||
"type": "module", | ||
"scripts": { | ||
"build": "tsc", | ||
"prepare": "husky install" | ||
"prepare": "husky install", | ||
"lint": "npx prettier --check --ignore-path .gitignore ." | ||
}, | ||
"prettier": "@bokub/prettier-config", | ||
"dependencies": { | ||
|
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
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