Skip to content

Commit

Permalink
add enterprise to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtreece committed Sep 18, 2024
1 parent 90c706c commit fac8ba1
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/pr-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
version: [main, v11.2.x, v11.1.x, v11.0.x, v10.4.x, v10.3.x]
type: [oss, enterprise]
permissions:
id-token: write
contents: read
Expand All @@ -22,6 +23,13 @@ jobs:
repository: grafana/grafana
ref: ${{ matrix.version }}
path: grafana
- name: Checkout grafana-enterprise
if: matrix.type == 'enterprise'
uses: actions/checkout@v4
with:
repository: grafana/grafana-enterprise
ref: ${{ matrix.version }}
path: grafana-enterprise
- name: Clean runner
run: |
df -h
Expand All @@ -40,7 +48,15 @@ jobs:
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/share/swift
df -h
- uses: dagger/dagger-for-github@v6
- name: OSS tests
uses: dagger/dagger-for-github@v6
if: matrix.type == 'oss'
with:
verb: run
args: go run ./cmd artifacts -a targz:grafana:linux/amd64 --grafana-dir=grafana
- name: Enterprise tests
uses: dagger/dagger-for-github@v6
if: matrix.type == 'enterprise'
with:
verb: run
args: go run ./cmd artifacts -a targz:grafana:linux/amd64 --grafana-dir=grafana
args: go run ./cmd artifacts -a targz:grafana-enterprise:linux/amd64 --grafana-dir=grafana --enterprise-dir=grafana-enterprise

0 comments on commit fac8ba1

Please sign in to comment.