Skip to content

Fixing cli docs for deletingUserFromOrg, performance tweak to org upload #692

Fixing cli docs for deletingUserFromOrg, performance tweak to org upload

Fixing cli docs for deletingUserFromOrg, performance tweak to org upload #692

Workflow file for this run

name: Go
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
go: [ {version: 1.22.1, token: 1}, {version: 1.22.1, token: 0}]
grafana: [ 10.1.4 ]
env:
GRAFANA_INTEGRATION: 1
TEST_TOKEN_CONFIG: "${{ matrix.go.token }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go.version }}
- name: Verify go version
run: go version
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Validate ENV Value
shell: bash
run: |
echo "token IS $TEST_TOKEN_CONFIG"
- name: Calc coverage
if: "${{ matrix.go.version == '1.22.1' && matrix.grafana == '10.1.4' && matrix.go.token == '0' }}"
run: |
go test -v -covermode=atomic -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
if: "${{ matrix.go.version == '1.22.1' && matrix.grafana == '10.1.4' && matrix.go.token == '0' }}"
uses: jandelgado/[email protected]
- name: Test
if: "${{ matrix.go.token == '1' }}"
run: go test -v ./...