Spring cleaning ☀️ (#23)

* Spring cleaning

* Actions

* Fix branches

* Changes for config_flow
This commit is contained in:
Joakim Sørensen
2020-04-17 19:42:59 +02:00
committed by GitHub
parent d408fbec4a
commit a53b0f75a1
28 changed files with 349 additions and 731 deletions

23
.github/settings.yml vendored
View File

@@ -1,23 +0,0 @@
repository:
private: false
has_issues: true
has_projects: false
has_wiki: false
has_downloads: false
default_branch: master
allow_squash_merge: true
allow_merge_commit: false
allow_rebase_merge: false
labels:
- name: "Feature Request"
color: "fbca04"
- name: "Bug"
color: "b60205"
- name: "Wont Fix"
color: "ffffff"
- name: "Enhancement"
color: a2eeef
- name: "Documentation"
color: "008672"
- name: "Stale"
color: "930191"

View File

@@ -1,14 +1,13 @@
name: Validate with hassfest
name: Cron actions
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
validate:
hassfest:
runs-on: "ubuntu-latest"
name: Validate with hassfest
steps:
- uses: "actions/checkout@v2"
- uses: home-assistant/actions/hassfest@master
- uses: "home-assistant/actions/hassfest@master"

23
.github/workflows/pull.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Pull actions
on:
pull_request:
jobs:
hassfest:
runs-on: "ubuntu-latest"
name: Validate with hassfest
steps:
- uses: "actions/checkout@v2"
- uses: "home-assistant/actions/hassfest@master"
style:
runs-on: "ubuntu-latest"
name: Check style formatting
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v1"
with:
python-version: "3.x"
- run: python3 -m pip install black
- run: black .

26
.github/workflows/push.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Push actions
on:
push:
branches:
- master
- dev
jobs:
hassfest:
runs-on: "ubuntu-latest"
name: Validate with hassfest
steps:
- uses: "actions/checkout@v2"
- uses: "home-assistant/actions/hassfest@master"
style:
runs-on: "ubuntu-latest"
name: Check style formatting
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v1"
with:
python-version: "3.x"
- run: python3 -m pip install black
- run: black .