Skip to content

Commit 9f95d04

Browse files
author
pjarugula
committed
refactor: Create yaml file to trigger E2E Tests
1 parent cae0442 commit 9f95d04

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
- debug:
3+
msg: Tests E2E
4+
5+
- name: Clone the Onboarding tests repository
6+
git:
7+
repo: https://github.com/newrelic/onboarding-e2e-tests.git
8+
dest: /opt/onboarding-e2e-tests
9+
10+
- name: Write Permissions for repo
11+
shell: "mkdir -p /opt/onboarding-e2e-tests && chmod 755 /opt/onboarding-e2e-tests"
12+
13+
- name: Trigger Onboarding tests
14+
shell: "cd /opt/onboarding-e2e-tests && pwd"
15+
16+
- name: Create env file
17+
shell: "touch /opt/onboarding-e2e-tests/.env"
18+
19+
- name: Store values in env file
20+
shell: |
21+
echo "ENV_SECRET_EMAIL='[email protected]' \nENV_SECRET_PASSWORD='example'" >> /opt/onboarding-e2e-tests/.env
22+
23+
- name: npm install
24+
shell: "npm install"
25+
args:
26+
chdir: /opt/onboarding-e2e-tests
27+
28+
- name: Install Playwright
29+
shell: "npx [email protected] install --with-deps chromium"
30+
args:
31+
chdir: /opt/onboarding-e2e-tests
32+
33+
- name: Test playwright scripts
34+
shell: "npx playwright test"
35+
args:
36+
chdir: /opt/onboarding-e2e-tests

test/deploy/onboarding-tests/roles/configure/tasks/package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)