From 53e93562094c3370e7fdcc20e307ff7f4e047e4a Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Sun, 14 Jul 2024 00:41:36 +0200 Subject: [PATCH] Adapt CI test --- .github/workflows/test.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60dddbb..7fa7364 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,6 +64,14 @@ jobs: terraform: - "1.8.*" - "1.9.*" + netbox: + - "3.7.8" + - "4.0.7" + include: + - netbox: "3.7.8" + netbox_bgp: "0.12.1" + - netbox: "4.0.7" + netbox_bgp: "0.13.2" steps: - uses: actions/checkout@v4.1.7 - uses: actions/setup-go@v5.0.1 @@ -74,8 +82,13 @@ jobs: with: terraform_version: ${{ matrix.terraform }} terraform_wrapper: false - - run: go mod download - - env: - TF_ACC: "1" - run: go test -v -cover ./internal/provider/ + - name: Prep prerequisites + run: | + go mod download & + make docker-up & + wait + - run: make testacc + env: + NETBOX_VERSION: ${{ matrix.netbox }} + NETBOX_BGP_VERSION: ${{ matrix.netbox_bgp }} timeout-minutes: 10