diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 0000000..624c0ec --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -0,0 +1,28 @@ +name: PR Comment + +on: + issue_comment: + types: [created] + +jobs: + grafana-integration-test: + runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && github.event.comment.body == '/grafana-integration-test' }} + strategy: + matrix: + version: [main, v11.2.x, v11.1.x, v11.0.x, v10.4.x, v10.3.x] + permissions: + id-token: write + contents: read + steps: + - uses: actions/checkout@v4 + - name: Checkout grafana + uses: actions/checkout@v4 + with: + repository: grafana/grafana + ref: ${{ matrix.version }} + path: grafana + - uses: dagger/dagger-for-github@v6 + with: + verb: run + args: go run ./cmd artifacts -a targz:grafana:linux/amd64 --grafana-dir=grafana \ No newline at end of file diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 08fe3b1..daa8163 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -33,24 +33,4 @@ jobs: with: go-version: stable cache: true - - run: "go test ./... -v" - grafana-integration-test: - runs-on: ubuntu-latest - strategy: - matrix: - version: [main, v11.2.x, v11.1.x, v11.0.x, v10.4.x, v10.3.x] - permissions: - id-token: write - contents: read - steps: - - uses: actions/checkout@v4 - - name: Checkout grafana - uses: actions/checkout@v4 - with: - repository: grafana/grafana - ref: ${{ matrix.version }} - path: grafana-oss - - uses: dagger/dagger-for-github@v6 - with: - verb: run - args: go run ./cmd artifacts -a targz:grafana:linux/amd64 --grafana-dir=grafana-oss \ No newline at end of file + - run: "go test ./... -v" \ No newline at end of file