Files
ha-addon-teslamate/.github/workflows/integration-test.yaml
T
renovate[bot] b21b77c5b0 Update actions/checkout action to v7.0.1 (#149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-21 06:35:27 +01:00

50 lines
1.4 KiB
YAML

name: Integration Test
on:
push:
branches:
- main
paths:
- config.json
- Dockerfile
- rootfs/**
- .devcontainer/**
pull_request:
branches:
- main
paths:
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run integration test in devcontainer
uses: devcontainers/ci@513af61f4de4f75d37e4438f184ba4358f0fc1ca # v0.3.1900000450
with:
env: |
DEBUG=${{ vars.DEBUG }}
GITHUB_ACTIONS=true
runCmd: |
if jq -e 'has("image")' config.json >/dev/null 2>&1; then
jq 'del(.image)' config.json > config.json.tmp && mv config.json.tmp config.json
fi
printf '#!/bin/sh\nexit 0\n' | sudo tee /usr/sbin/apparmor_parser > /dev/null && sudo chmod +x /usr/sbin/apparmor_parser
sudo sed -i 's|docker run --rm --privileged|docker run --rm --privileged -v /usr/sbin/apparmor_parser:/usr/sbin/apparmor_parser:ro|' /usr/bin/supervisor_run
if [ -n "${DEBUG:-}" ]; then
supervisor_run &
else
supervisor_run > /dev/null 2>&1 &
fi
bash .devcontainer/setup-ha.sh