mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
44 lines
964 B
YAML
44 lines
964 B
YAML
name: Integration Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- build.json
|
|
- config.json
|
|
- Dockerfile
|
|
- rootfs/**
|
|
- .devcontainer/**
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- build.json
|
|
- config.json
|
|
- Dockerfile
|
|
- rootfs/**
|
|
- .devcontainer/**
|
|
|
|
jobs:
|
|
integration:
|
|
name: Integration test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v6.0.2
|
|
|
|
- name: Run integration test in devcontainer
|
|
uses: devcontainers/ci@v0.3
|
|
with:
|
|
runCmd: |
|
|
echo "::group::Start Supervisor"
|
|
if [ -n "${DEBUG:-}" ]; then
|
|
SUPERVISOR_UNCONFINED=1 supervisor_run &
|
|
else
|
|
SUPERVISOR_UNCONFINED=1 supervisor_run > /dev/null 2>&1 &
|
|
fi
|
|
echo "::endgroup::"
|
|
DEBUG=1 bash .devcontainer/setup-ha.sh
|