Skip to content

Github Actions: OSS and Enterprise tests #6

Github Actions: OSS and Enterprise tests

Github Actions: OSS and Enterprise tests #6

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: 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:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['10.2.0', '10.1.5', '9.5.13', '8.5.27']
include:
# OSS tests, run on all versions (by not setting version, it will use the matrix setting)
- with_enterprise_license: false
with_tls_proxy: false
# TLS proxy tests, run only on latest version
- version: '10.2.0'
with_enterprise_license: false
with_tls_proxy: true
# Enterprise tests, run only on latest version
# - version: '10.2.0'
# with_enterprise_license: true
# with_tls_proxy: false
name: ${{ matrix.version }}${{ matrix.with_enterprise_license && "- enterprise" || "" }}${{ matrix.with_tls_proxy && "- tls-proxy" || "" }}

Check failure on line 53 in .github/workflows/acc-tests.yml

View workflow run for this annotation

GitHub Actions / acceptance tests

Invalid workflow file

The workflow is not valid. .github/workflows/acc-tests.yml (Line: 53, Col: 11): Unexpected symbol: '"-'. Located at position 35 within expression: matrix.with_enterprise_license && "- enterprise" || "" .github/workflows/acc-tests.yml (Line: 57, Col: 14): Unexpected symbol: '"-tls"'. Located at position 26 within expression: matrix.with_tls_proxy && "-tls" || ""
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- run: make testacc-oss-docker${{ matrix.with_tls_proxy && "-tls" || "" }}
env:
GRAFANA_VERSION: ${{ matrix.version }}
# TODO: Enterprise + OSS tests