-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Create yaml file to trigger e2e test
- Loading branch information
pjarugula
committed
Dec 26, 2023
1 parent
64b0d8f
commit 8ac7c45
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
test/deploy/onboarding-tests/roles/configure/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
- debug: | ||
msg: Tests E2E | ||
|
||
- name: Clone the Onboarding tests repository | ||
git: | ||
repo: https://github.com/newrelic/onboarding-e2e-tests.git | ||
dest: /home/user/ | ||
become: yes | ||
|
||
- name: Write Permissions for repo | ||
shell: "chmod 755 onboarding-e2e-tests" | ||
become: yes | ||
|
||
- name: Trigger Onboarding tests | ||
shell: "cd onboarding-e2e-tests" | ||
become: yes | ||
|
||
- name: Create env file | ||
shell: "touch .env" | ||
become: yes | ||
|
||
- name: Store values in env file | ||
shell: "echo -e ENV_SECRET_EMAIL='${ENV_SECRET_EMAIL}' \nENV_SECRET_PASSWORD='${ENV_SECRET_PASSWORD}' > .env" | ||
become: yes | ||
|
||
- name: npm install | ||
shell: "npm install" | ||
become: yes | ||
|
||
- name: Install Playwright | ||
shell: "npx [email protected] install --with-deps chromium" | ||
become: yes | ||
|
||
- name: Test playwright scripts | ||
shell: "npx playwright test" | ||
become: yes | ||
|