Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: updated E2E test suite with @grafana/plugin-e2e #746

Draft
wants to merge 6 commits into
base: digest-auth-lib-change
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: E2E Tests
on:
pull_request:
path-ignore:
- 'docs/**'
push:
path-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: '1.21.6'
- name: Test backend
uses: magefile/mage-action@v2
with:
version: latest
args: coverage
- name: Build backend
uses: magefile/mage-action@v2
with:
version: latest
args: buildAll
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install -g yarn && yarn install --frozen-lockfile;
- name: Spellcheck
run: |
yarn spellcheck;
- name: Build Frontend
run: |
yarn build;
- name: Start the docker container for E2E
run: |
docker-compose pull
docker-compose up -d
- name: Wait for grafana to start
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:3000/'
responseCode: 200
timeout: 20000
interval: 500
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run E2E tests
run: yarn test:e2e
- name: Run E2E artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Stop the docker container
if: always()
run: docker-compose down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ website/next-env.d.ts
work/
yarn-debug.log*
yarn-error.log*
docker/blocks/tempo/tempo-data
docker/blocks/tempo/tempo-data
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
220 changes: 0 additions & 220 deletions cypress_skip/e2e/api.cy.ts

This file was deleted.

41 changes: 0 additions & 41 deletions cypress_skip/e2e/csv.cy.ts

This file was deleted.

22 changes: 0 additions & 22 deletions cypress_skip/e2e/explore.cy.ts

This file was deleted.

Loading
Loading