Skip to content

Commit 8ac7c45

Browse files
author
pjarugula
committed
refactor: Create yaml file to trigger e2e test
1 parent 64b0d8f commit 8ac7c45

File tree

1 file changed

+38
-0
lines changed
  • test/deploy/onboarding-tests/roles/configure/tasks

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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: /home/user/
9+
become: yes
10+
11+
- name: Write Permissions for repo
12+
shell: "chmod 755 onboarding-e2e-tests"
13+
become: yes
14+
15+
- name: Trigger Onboarding tests
16+
shell: "cd onboarding-e2e-tests"
17+
become: yes
18+
19+
- name: Create env file
20+
shell: "touch .env"
21+
become: yes
22+
23+
- name: Store values in env file
24+
shell: "echo -e ENV_SECRET_EMAIL='${ENV_SECRET_EMAIL}' \nENV_SECRET_PASSWORD='${ENV_SECRET_PASSWORD}' > .env"
25+
become: yes
26+
27+
- name: npm install
28+
shell: "npm install"
29+
become: yes
30+
31+
- name: Install Playwright
32+
shell: "npx [email protected] install --with-deps chromium"
33+
become: yes
34+
35+
- name: Test playwright scripts
36+
shell: "npx playwright test"
37+
become: yes
38+

0 commit comments

Comments
 (0)