Files
terraform-provider-unifi/.github/workflows/acctest.yml
2023-06-07 14:11:01 +10:00

42 lines
1.0 KiB
YAML

name: Acceptance Tests
on:
pull_request:
paths-ignore:
- "README.md"
push:
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"
- "latest"
include:
- unifi_version: "v7.4"
unifi_download_url: "https://dl.ui.com/unifi/7.4.156/unifi_sysvinit_all.deb"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
check-latest: true
- name: TF acceptance tests
timeout-minutes: 20
run: make testacc UNIFI_STDOUT=true UNIFI_VERSION=${{ matrix.unifi_download_url && 'beta' || matrix.unifi_version }} UNIFI_DOWNLOAD_URL=${{ matrix.unifi_download_url }}