Skip to content

Commit

Permalink
revert files
Browse files Browse the repository at this point in the history
  • Loading branch information
vitPinchuk committed Apr 16, 2024
1 parent 199d495 commit b4a7ff7
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Daily E2E using Grafana Main

on:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Setup playwright browser
run: npx playwright install --with-deps chromium

- name: Start Grafana
run: docker-compose -f test/docker-compose.yml up -d

- name: Run e2e tests
run: npm run e2e

- name: Stop Grafana
run: docker-compose down
17 changes: 17 additions & 0 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.4'

services:
grafana:
container_name: grafana
image: grafana/grafana:main
ports:
- 3000:3000/tcp
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_BASIC_ENABLED=false
- GF_DEFAULT_APP_MODE=development
- GF_INSTALL_PLUGINS=marcusolsson-static-datasource
volumes:
- ../dist:/var/lib/grafana/plugins/volkovlabs-echarts-panel
- ../provisioning:/etc/grafana/provisioning

0 comments on commit b4a7ff7

Please sign in to comment.