Skip to content

fix: Add health check before running e2e tests #7

fix: Add health check before running e2e tests

fix: Add health check before running e2e tests #7

Workflow file for this run

name: e2e
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install node modules
run: npm install
- run: npm run build
name: Build the plugin
- name: Run docker compose
run: docker compose up -d
- name: Check if Grafana is ready
run: status="0"; while [status -ne "200"]; do status=$(curl -o /dev/null -w "%{response_code}" localhost:3000/api/health); done
- name: Run e2e tests with cypress
run: npm run e2e