Skip to content

[AV-128953] Add acceptance tests for data management resources (#617) #2473

[AV-128953] Add acceptance tests for data management resources (#617)

[AV-128953] Add acceptance tests for data management resources (#617) #2473

name: Acceptance Tests
on:
workflow_dispatch:
pull_request:
paths:
- 'acceptance_tests/**'
- 'internal/**'
push:
branches:
- main
paths:
- 'acceptance_tests/**'
- 'internal/**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
TF_VAR_auth_token: ${{ secrets.CAPELLA_AUTH_TOKEN }}
TF_VAR_organization_id: ${{ secrets.CAPELLA_ORGANIZATION_ID }}
TF_VAR_host: ${{ secrets.CAPELLA_HOST }}
CAPELLA_OPENAPI_SPEC_PATH: ${{ github.workspace }}/openapi.generated.yaml
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4 # this action has caching built in
with:
go-version-file: 'go.mod'
cache: false
id: go
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: cache-${{ github.run_id }}
- uses: hashicorp/setup-terraform@v4
with:
terraform_version: 1.14.9
terraform_wrapper: false
- name: Run acceptance tests
run: make testacc