Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: Test PR #367

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/pr-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
grafana-integration-tests:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.issue.pull_request && startsWith(github.event.comment.body, '/grafana-integration-tests')) }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
version: [main, v11.2.x, v11.1.x, v11.0.x, v10.4.x, v10.3.x]
type: [oss]
Expand All @@ -18,7 +20,26 @@ jobs:
permissions:
id-token: write
contents: read
checks: write
steps:
- name: "Create check"
id: create-check
uses: actions/github-script@v7
with:
script: |
const check = await github.rest.checks.create({
owner: context.repo.owner,
repo: context.repo.repo,
head_sha: context.sha,
name: "pr-integration-tests",
status: "in_progress",
output: {
title: "Grafana Integration Tests",
summary: '',
text: ''
},
});
return { id: check.data.id }
- name: Checkout grafana
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -64,4 +85,15 @@ jobs:
if: matrix.type == 'enterprise'
with:
verb: run
args: go run ./cmd artifacts -a targz:grafana-enterprise:linux/amd64 --grafana-dir=grafana --enterprise-dir=grafana-enterprise --go-version=${GRAFANA_GO_VERSION}
args: go run ./cmd artifacts -a targz:grafana-enterprise:linux/amd64 --grafana-dir=grafana --enterprise-dir=grafana-enterprise --go-version=${GRAFANA_GO_VERSION}
- name: "Update check"
uses: actions/github-script@v7
with:
script: |
await github.rest.checks.update({
repo: context.repo.repo,
owner: context.repo.owner,
check_run_id: ${{ fromJSON(steps.create-check.outputs.result).id }},
status: "completed",
conclusion: "${{ job.status }}",
});
Loading