Skip to content

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.29.0 to 2.30.0 #110

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.29.0 to 2.30.0

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.29.0 to 2.30.0 #110

Workflow file for this run

name: acceptance tests
on:
pull_request: {}
push:
branches:
- main
- master
# These permissions are needed to assume roles from Github's OIDC.
permissions:
contents: read
id-token: write
jobs:
cloudinstance:
concurrency: cloud-instance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- uses: hashicorp/setup-terraform@v3
- name: Get Secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
repo_secrets: |
GRAFANA_AUTH=cloud-instance-tests:auth
GRAFANA_ONCALL_ACCESS_TOKEN=cloud-instance-tests:oncall-token
GRAFANA_SM_ACCESS_TOKEN=cloud-instance-tests:sm-token
GRAFANA_URL=cloud-instance-tests:url
- uses: iFaxity/wait-on-action@v1.1.0
with:
resource: ${{ env.GRAFANA_URL }}
interval: 2000 # 2s
timeout: 30000 # 30s
- run: make testacc-cloud-instance
local:
strategy:
fail-fast: false # Let all versions run, even if one fails
matrix:
# OSS tests, run on all versions
version: ['10.2.0', '10.1.5', '9.5.13', '8.5.27']
type: ['oss']
subset: ['basic', 'other', 'long']
include:
# TLS proxy tests, run only on latest version
- version: '10.2.0'
type: 'tls'
subset: 'basic'
# Sub-path tests. Runs tests on localhost:3000/grafana/
- version: '10.2.0'
type: 'subpath'
subset: 'basic'
- version: '10.2.0'
type: 'subpath'
subset: 'other'
# Enterprise tests, run only on latest version
- version: '10.2.0'
type: 'enterprise'
subset: 'all'
name: ${{ matrix.version }} - ${{ matrix.type }} - ${{ matrix.subset }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- uses: hashicorp/setup-terraform@v3
- uses: KengoTODA/actions-setup-docker-compose@v1
with:
version: '2.23.0'
- name: Get Enterprise License
uses: grafana/shared-workflows/actions/get-vault-secrets@main
if: matrix.type == 'enterprise'
with:
repo_secrets: |
GF_ENTERPRISE_LICENSE_TEXT=enterprise:license
- name: Cache Docker image
uses: ScribeMD/docker-cache@0.3.6
with:
key: docker-${{ runner.os }}-${{ matrix.type == 'enterprise' && 'enterprise' || 'oss' }}-${{ matrix.version }}
- run: make testacc-${{ matrix.type }}-docker
env:
GRAFANA_VERSION: ${{ matrix.version }}
TESTARGS: >-
${{ matrix.subset == 'all' && '-parallel 2' || '' }}
${{ matrix.subset == 'basic' && '-run=".*_basic" -short -parallel 2' || '' }}
${{ matrix.subset == 'other' && '-skip=".*_basic" -short -parallel 2' || '' }}
${{ matrix.subset == 'long' && '-run=".*longtest" -parallel 1' || '' }}