Adding more functionality in GDG TUI #2069
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| integration_tests: | |
| strategy: | |
| matrix: | |
| grafana_version: [ 11.6.0-ubuntu, 12.3.0-ubuntu ] | |
| use_tokens: [ 0, 1 ] | |
| go_version: [ 1.26.0] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: ./actions/setup_go | |
| with: | |
| go_version: "${{ matrix.go_version }}" | |
| - name: Run Reporting test | |
| if: ${{ matrix.grafana_version == '12.3.0-ubuntu' && matrix.use_tokens == 0 }} | |
| uses: ./actions/coverage | |
| with: | |
| grafana_version: "${{ matrix.grafana_version }}" | |
| coverage_token: "${{ secrets.CODECOV_TOKEN }}" | |
| enterprise_jwt: "${{ secrets.ENTERPRISE_LICENSE }}" | |
| - name: Run Non Reporting test | |
| if: ${{ matrix.grafana_version != '12.3.0-ubuntu' || matrix.use_tokens != 0 }} | |
| env: | |
| ENTERPRISE_LICENSE: "${{ secrets.ENTERPRISE_LICENSE }}" | |
| GRAFANA_TEST_VERSION: "${{ matrix.grafana_version }}" | |
| TEST_TOKEN_CONFIG: "${{ matrix.use_tokens }}" | |
| run: go tool -modfile tools/go.mod gotestsum --format testname -- -covermode=atomic -coverpkg=$(go list ./... | egrep -v "mocks|test_tooling" | tr '\n' ',' ) ./... |