Plugin E2E: Make it possible to test query editor in panel edit page #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E tests - Playwright | |
on: | |
pull_request: | |
paths: | |
- 'packages/plugin-e2e/**' | |
jobs: | |
playwright-tests: | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
GRAFANA_VERSION: ['latest', '10.0.5', '9.5.5', '9.2.5'] | |
GOOGLE_SHEETS_VERSION: ['1.2.4', '1.2.0'] | |
name: E2E Tests - Grafana@${{ matrix.GRAFANA_VERSION }} GoogleSheets@${{ matrix.GOOGLE_SHEETS_VERSION }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy auth file | |
run: mkdir -p packages/plugin-e2e/playwright/.auth/ && cp .github/user.json packages/plugin-e2e/playwright/.auth/user.json | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build frontend | |
run: npm run build --w @grafana/plugin-e2e | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps chromium | |
- name: Start Grafana | |
run: docker run --rm -d -p 3000:3000 --name=grafana --env "GF_INSTALL_PLUGINS=grafana-googlesheets-datasource ${{matrix.GOOGLE_SHEETS_VERSION}}" grafana/grafana:${{ matrix.GRAFANA_VERSION }}; sleep 30 | |
- name: Run Playwright tests | |
run: npm run playwright:test --w @grafana/plugin-e2e | |
env: | |
GOOGLE_JWT_FILE: ${{ secrets.GOOGLE_JWT_FILE }} | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report-Grafana${{ matrix.GRAFANA_VERSION }}-GoogleSheets${{ matrix.GOOGLE_SHEETS_VERSION }} | |
path: packages/plugin-e2e/playwright-report/ | |
retention-days: 30 |