-
Notifications
You must be signed in to change notification settings - Fork 233
41 lines (36 loc) · 1.14 KB
/
cloud-acc-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: cloud acceptance tests
on:
workflow_dispatch:
inputs:
tests:
description: 'Tests to run (regex passed to -run)'
default: '.*'
workflow_call:
inputs:
tests:
type: string
description: 'Tests to run (regex passed to -run)'
default: '.*'
# These permissions are needed to assume roles from Github's OIDC.
permissions:
contents: read
id-token: write
jobs:
cloud:
concurrency: cloud-api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: go.mod
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
- name: Get Secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
repo_secrets: |
GRAFANA_CLOUD_ACCESS_POLICY_TOKEN=cloud-tests:api-key
GRAFANA_CLOUD_ORG=cloud-tests:org
- run: make testacc-cloud-api
env:
TESTARGS: -run='${{ github.event.inputs.tests }}'