mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
Update run-e2e.yaml (#8620)
This commit is contained in:
parent
f9db796489
commit
2639f975ee
35
.github/workflows/run-e2e.yaml
vendored
35
.github/workflows/run-e2e.yaml
vendored
@ -27,26 +27,29 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Mask secrets and input
|
||||||
run: npm install -g yarn && yarn
|
|
||||||
|
|
||||||
- name: Install Playwright Browsers
|
|
||||||
run: yarn playwright install --with-deps
|
|
||||||
|
|
||||||
- name: Mask secrets and inputs
|
|
||||||
run: |
|
run: |
|
||||||
echo "::add-mask::${{ secrets.E2E_TENANT_BASE_URL }}"
|
echo "::add-mask::${{ secrets.BASE_URL }}"
|
||||||
echo "::add-mask::${{ secrets.E2E_USER_EMAIL }}"
|
echo "::add-mask::${{ secrets.LOGIN_USERNAME }}"
|
||||||
echo "::add-mask::${{ secrets.E2E_USER_PASSWORD }}"
|
echo "::add-mask::${{ secrets.LOGIN_PASSWORD }}"
|
||||||
echo "::add-mask::${{ github.event.inputs.userRole }}"
|
echo "::add-mask::${{ github.event.inputs.userRole }}"
|
||||||
|
|
||||||
- name: Run Playwright Tests
|
- name: Install dependencies
|
||||||
|
working-directory: frontend
|
||||||
run: |
|
run: |
|
||||||
echo "✅ Starting Playwright tests..."
|
npm install -g yarn
|
||||||
|
yarn
|
||||||
|
|
||||||
BASE_URL="${{ secrets.E2E_TENANT_BASE_URL }}" \
|
- name: Install Playwright Browsers
|
||||||
LOGIN_USERNAME="${{ secrets.E2E_USER_EMAIL }}" \
|
working-directory: frontend
|
||||||
LOGIN_PASSWORD="${{ secrets.E2E_USER_PASSWORD }}" \
|
run: yarn playwright install --with-deps
|
||||||
|
|
||||||
|
- name: Run Playwright Tests
|
||||||
|
working-directory: frontend
|
||||||
|
run: |
|
||||||
|
BASE_URL="${{ secrets.BASE_URL }}" \
|
||||||
|
LOGIN_USERNAME="${{ secrets.LOGIN_USERNAME }}" \
|
||||||
|
LOGIN_PASSWORD="${{ secrets.LOGIN_PASSWORD }}" \
|
||||||
USER_ROLE="${{ github.event.inputs.userRole }}" \
|
USER_ROLE="${{ github.event.inputs.userRole }}" \
|
||||||
yarn playwright test
|
yarn playwright test
|
||||||
|
|
||||||
@ -55,5 +58,5 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: playwright-report
|
name: playwright-report
|
||||||
path: playwright-report/
|
path: frontend/playwright-report/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user