Skip to content

Commit

Permalink
fix: Fix playwright workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-mu committed Apr 22, 2024
1 parent b713664 commit 14fbdbc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: e2e
on:
push:
branches: [ "main" ]
branches: [ ] # "main"
pull_request:
branches: [ "main" ]
branches: [ ] # "main"

jobs:

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- run: npm run build
name: Build the plugin
- name: Run docker compose
run: docker compose up -d
- name: Check if Grafana is ready
run: |
while [[ "$(curl --insecure -s -o /dev/null -w "%{response_code}" http://localhost:3000/api/health)" != "200" ]]; do
sleep 1
echo "Grafana server not ready."
done
echo "Grafana server ready to accept connections."
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 14fbdbc

Please sign in to comment.