Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Acceptance Tests

Acceptance Tests #4085

Workflow file for this run

name: Acceptance Tests
on:
pull_request:
paths-ignore:
- "README.md"
push:
branches:
- "main"
tags:
- "v*"
paths-ignore:
- "README.md"
schedule:
- cron: "0 13 * * *"
jobs:
test:
name: Matrix Test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
unifi_version:
- "v6.5"
- "v6"
- "v7.0"
- "v7.1"
- "v7.2"
- "v7.3"
- "v7.4"
- "v7.5"
- "v7"
- "v8.0"
- "v8.1"
- "v8.2"
- "v8.3"
- "v8.4"
- "v8.5"
- "v8.6"
- "v8"
- "v9.0"
- "v9"
- "latest"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
# Pre-install Teraform, so that test cases don't try installing their temporary copy
# See https://github.com/hashicorp/terraform-plugin-testing/issues/429
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_wrapper: false
# The acceptance tests sometimes timeout for some unknown reason.
- name: TF acceptance tests
uses: "nick-fields/retry@v3"
with:
timeout_minutes: 20
max_attempts: 3
command: make testacc TEST_TIMEOUT=1h UNIFI_STDOUT=true UNIFI_VERSION=${{ matrix.unifi_download_url && 'beta' || matrix.unifi_version }} UNIFI_DOWNLOAD_URL=${{ matrix.unifi_download_url }}
retry_on: "timeout"