Skip to content

Merge branch 'master' into matrix-ha-test #4363

Merge branch 'master' into matrix-ha-test

Merge branch 'master' into matrix-ha-test #4363

Workflow file for this run

---
name: Home Assistant
# yamllint disable-line rule:truthy
on:
push:
pull_request:
schedule:
- cron: 0 12 * * *
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Running YAMLlint
uses: ibiqlik/action-yamllint@v3
continue-on-error: false
with:
config_file: .github/yamllint-config.yml
remarklint:
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Running Remark lint
uses: "docker://pipelinecomponents/remark-lint:latest"
continue-on-error: false
with:
args: "remark --no-stdout --color --frail --use preset-lint-recommended ."
version_env:

Check failure on line 33 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Home Assistant

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 33, Col: 5): Unexpected value 'version_env' .github/workflows/main.yaml (Line: 48, Col: 5): Unexpected value 'home-assistant'
name: Get Installed Version for Testing
runs-on: ubuntu-latest
outputs:
current_version: ${{ steps.currentver.outputs.current_version }}
steps:
- name: Get config from GitHub
uses: actions/checkout@v4
- name: Get Installed Version from .HA_VERSION
id: currentver
run: |
HA_VERSION=$(<.HA_VERSION)
echo $HA_VERSION
echo "{current_version}={$HA_VERSION}" >> $GITHUB_OUTPUT
home-assistant:
name: "HA ${{ matrix.version }} Config Check"
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
strategy:
matrix:
version: ["${{needs.version_env.outputs.current_version}}", "stable", "beta", "dev"]
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/checkout@v4
- name: ⚙ Copy stub files into configuration folder
run: |
cp -R travis_secrets.yaml secrets.yaml
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/action-home-assistant@v1
with:
path: "."
secrets: secrets.yaml
version: "${{ matrix.version }}"
home_assistant_stable:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Copy stub files into configuration folder
run: |
cp -R travis_secrets.yaml secrets.yaml
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:stable"
with:
args: |
python -m homeassistant --version
- name: Home Assistant Check
uses: "docker://homeassistant/home-assistant:stable"
with:
args: python -m homeassistant --config ./ --script check_config --info all
home_assistant_beta:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Copy stub files into configuration folder
run: |
cp -R travis_secrets.yaml secrets.yaml
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:beta"
with:
args: |
python -m homeassistant --version
- name: Home Assistant Check
uses: "docker://homeassistant/home-assistant:beta"
with:
args: python -m homeassistant --config ./ --script check_config --info all
home_assistant_rc:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Copy stub files into configuration folder
run: |
cp -R travis_secrets.yaml secrets.yaml
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:rc"
with:
args: |
python -m homeassistant --version
- name: Home Assistant Check
uses: "docker://homeassistant/home-assistant:rc"
with:
args: python -m homeassistant --config ./ --script check_config --info all