28 lines
864 B
YAML
28 lines
864 B
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: Validate runner architecture
|
|
run: test "$(uname -m)" = "x86_64"
|
|
- name: Build validation image
|
|
run: docker build --file tests/Dockerfile.ci --tag homeassistant-stelloauth-tests:test .
|
|
- name: Validate metadata, patches, and process manager
|
|
run: docker run --rm homeassistant-stelloauth-tests:test -q
|
|
- name: Build amd64 image
|
|
run: docker build --build-arg TARGETARCH=amd64 --build-arg BUILD_ARCH=amd64 --tag homeassistant-stelloauth-addon:test stelloauth
|
|
- name: Exercise runtime
|
|
run: SKIP_BUILD=1 tests/test_runtime.sh
|