CI: Run e2e tests against two Grafana versions#1419
Conversation
|
Hello! 👋 This repository uses Auto for releasing packages using PR labels. ✨ This PR can be merged. It will not be considered when calculating future versions of the npm packages and will not appear in the changelogs. |
45f43a7 to
2ab7203
Compare
|
|
5389546 to
522daa0
Compare
| /* Retry on CI only */ | ||
| retries: process.env.CI ? 2 : 0, | ||
| /* Opt out of parallel tests on CI. */ | ||
| workers: process.env.CI ? 1 : undefined, |
There was a problem hiding this comment.
This speeds up the CI process a bit. Seems to work fine in GH workflows
mckn
left a comment
There was a problem hiding this comment.
LGTM! Should we also add a check if MIN_VERSION and LATEST_VERSION is the same, then we probably can skip running MIN_VERSION tests.
@mckn I don't think it can be the same. We set |
522daa0 to
6d5bfb2
Compare
| working-directory: ./${{ matrix.workingDir }} | ||
|
|
||
| - name: Wait for grafana server (${{ steps.min-version.outputs.MIN_VERSION }}) | ||
| uses: grafana/plugin-actions/wait-for-grafana@main |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow
| working-directory: ./${{ matrix.workingDir }} | ||
|
|
||
| - name: Wait for grafana server | ||
| - name: Wait for grafana server (latest) |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Publish report | ||
| uses: grafana/plugin-actions/playwright-gh-pages/deploy-report-pages@main |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow
This reverts commit 055c2cb.
1c98109 to
01013b4
Compare
| working-directory: ./${{ matrix.workingDir }} | ||
|
|
||
| - name: Upload e2e test summary (latest) | ||
| uses: grafana/plugin-actions/playwright-gh-pages/upload-report-artifacts@main |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow
| working-directory: ./${{ matrix.workingDir }} | ||
|
|
||
| - name: Upload e2e test summary (${{ steps.min-version.outputs.MIN_VERSION }}) | ||
| uses: grafana/plugin-actions/playwright-gh-pages/upload-report-artifacts@main |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow
What this PR does / why we need it:
This PR extends the CI workflow so that the e2e tests are not only run against the latest version of Grafana, but also against the lowest supported Grafana version. In addition to that, the reports are now being deployed to GH pages.
Note that I have forced two tests to fail just to showcase what it looks like (see PR comment below).
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: