Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try a new test matrix #554

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,45 @@ jobs:
continue-on-error: false
with:
args: "remark --no-stdout --color --frail --use preset-lint-recommended ."

version_env:
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]
Expand Down