-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (70 loc) · 2.21 KB
/
Copy pathe2e.yaml
File metadata and controls
81 lines (70 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
name: Home Assistant E2E
# This workflow is intentionally independent from CI and release gates.
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
schedule:
- cron: "17 3 * * *"
workflow_dispatch:
concurrency:
group: home-assistant-e2e
cancel-in-progress: true
permissions:
contents: read
jobs:
e2e:
name: Latest Home Assistant lifecycle
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v7
with:
persist-credentials: false
- name: 🐍 Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.14"
- name: ⚡ Set up uv
uses: astral-sh/setup-uv@v10.1.0
with:
version: "0.12.17"
- name: 🧰 Install test dependencies
run: uv sync --frozen
- name: 🏗 Set up Docker Buildx
uses: docker/setup-buildx-action@v4.4.1
- name: 🏗 Build production add-on image
uses: docker/build-push-action@v7.4.0
with:
context: cloudflared
file: cloudflared/Dockerfile
load: true
push: false
tags: hass-cloudflared:e2e
cache-from: type=gha,scope=cloudflared-e2e-amd64
cache-to: type=gha,mode=max,scope=cloudflared-e2e-amd64
build-args: |
BUILD_ARCH=amd64
BUILD_DATE=${{ github.event.repository.updated_at }}
BUILD_DESCRIPTION=Cloudflared Home Assistant E2E
BUILD_NAME=Cloudflared
BUILD_REF=${{ github.sha }}
BUILD_REPOSITORY=${{ github.repository }}
BUILD_VERSION=e2e
- name: 🧪 Exercise Home Assistant and add-on lifecycle
run: >-
uv run python scripts/e2e_home_assistant.py
--addon-image hass-cloudflared:e2e
--home-assistant-image ghcr.io/home-assistant/home-assistant:stable
--artifacts e2e-artifacts
- name: 📦 Upload diagnostics
if: always()
uses: actions/upload-artifact@v7
with:
name: home-assistant-e2e-${{ github.run_id }}
path: e2e-artifacts
if-no-files-found: warn
retention-days: 14