Skip to content

Fix docker compose file for running tests #22

Fix docker compose file for running tests

Fix docker compose file for running tests #22

Workflow file for this run

name: Tests
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set environment variables from .env
uses: xom9ikk/dotenv@v2.2.0
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Run tests
run: go test -v ./...
env:
VAULT_ACC: '1'
TEST_GRAFANA_CLOUD_TOKEN: ${{ secrets.TEST_GRAFANA_CLOUD_TOKEN }}
TEST_GRAFANA_CLOUD_STACK_SLUG: ${{ secrets.TEST_GRAFANA_CLOUD_STACK_SLUG }}
TEST_GRAFANA_CLOUD_REGION: ${{ secrets.TEST_GRAFANA_CLOUD_REGION }}
TEST_GRAFANA_CLOUD_ORG_IDENTIFIER: ${{ secrets.TEST_GRAFANA_CLOUD_ORG_IDENTIFIER }}