-
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (53 loc) · 1.82 KB
/
Copy pathintegration-test.yaml
File metadata and controls
58 lines (53 loc) · 1.82 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
name: Integration Test
on:
push:
branches:
- main
paths:
- config.json
- Dockerfile
- rootfs/**
- .devcontainer/**
pull_request:
branches:
- main
paths:
- config.json
- Dockerfile
- rootfs/**
- .devcontainer/**
# Home Assistant and the third-party add-on repository this test installs both
# move independently of this repo, so the test can break with no change here.
# Run it on a schedule to catch that on main rather than on an unrelated pull
# request that happens to touch one of the paths above.
schedule:
- cron: "17 6 * * *"
workflow_dispatch:
jobs:
integration:
name: Integration test
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run integration test in devcontainer
uses: devcontainers/ci@513af61f4de4f75d37e4438f184ba4358f0fc1ca # v0.3.1900000450
with:
runCmd: bash .devcontainer/run-integration-test.sh stable
# Early warning for Home Assistant changes that have not reached stable yet.
# Deliberately never runs on a pull request, so a broken beta cannot block a
# merge, and is non-blocking when it does run.
canary:
name: Integration test (beta)
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 30
continue-on-error: true
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run integration test in devcontainer
uses: devcontainers/ci@513af61f4de4f75d37e4438f184ba4358f0fc1ca # v0.3.1900000450
with:
runCmd: bash .devcontainer/run-integration-test.sh beta