Skip to content

Commit

Permalink
move to PR comment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtreece committed Sep 17, 2024
1 parent 3d2fac0 commit 96cfa9a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 1 addition & 21 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- run: "go test ./... -v"

0 comments on commit 96cfa9a

Please sign in to comment.