Files
homeassistant-stelloauth-addon/.gitea/workflows/ci.yml
T
2026-09-24 19:49:52 +02:00

40 lines
1.4 KiB
YAML

name: CI
"on":
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install test toolchain
run: |
set -eu
apk add --no-cache curl python3 py3-pip
curl --fail --location --silent --show-error \
--output /tmp/go1.27.1.linux-amd64.tar.gz \
https://go.dev/dl/go1.27.1.linux-amd64.tar.gz
echo "63d339f0da5ab53635a56f2490a7984dfe12dfcff22ad749f63edaf590168445 /tmp/go1.27.1.linux-amd64.tar.gz" \
| sha256sum -c -
mkdir -p /opt/go1.27.1
tar --extract --gzip --file /tmp/go1.27.1.linux-amd64.tar.gz \
--directory /opt/go1.27.1 --strip-components 1
ln -sf /opt/go1.27.1/bin/go /usr/local/bin/go
go version
python3 -m venv .venv
.venv/bin/pip install --requirement requirements-dev.txt
- name: Validate metadata, patches, and process manager
run: .venv/bin/pytest -q
- name: Build amd64 image
run: docker buildx build --platform linux/amd64 --build-arg BUILD_ARCH=amd64 --load --tag homeassistant-stelloauth-addon:test stelloauth
- name: Exercise runtime
run: SKIP_BUILD=1 tests/test_runtime.sh