-
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: Add command to install git
- Loading branch information
pjarugula
committed
Jan 30, 2024
1 parent
54e835d
commit c01b707
Showing
1 changed file
with
17 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,9 +2,23 @@ | |
- debug: | ||
msg: Tests E2E | ||
|
||
- name: Set test account email from Synthetic secrets | ||
set_fact: | ||
"test_email": "{{ test_email }}" | ||
|
||
- name: Set test account password from Synthetic secrets | ||
set_fact: | ||
"test_password": "{{ test_password }}" | ||
|
||
- name: Create directory | ||
shell: "mkdir -p ~/tests && chmod 777 ~/tests" | ||
|
||
- name: Install Git on Linux | ||
become: yes | ||
apt: | ||
name: git | ||
state: present | ||
|
||
- name: Clone the Onboarding tests repository | ||
git: | ||
repo: https://github.com/newrelic/onboarding-e2e-tests.git | ||
|
@@ -18,7 +32,7 @@ | |
|
||
- name: Store values in env file | ||
shell: | | ||
echo "ENV_SECRET_EMAIL='[email protected]' \nENV_SECRET_PASSWORD='example'" >> ~/tests/onboarding-e2e-tests/.env | ||
echo "ENV_SECRET_EMAIL='{{ test_email }}' \nENV_SECRET_PASSWORD='{{test_password }}'" >> ~/tests/onboarding-e2e-tests/.env | ||
- name: Write Permissions for repo | ||
shell: "chmod 755 ~/tests/onboarding-e2e-tests" | ||
|
@@ -34,6 +48,6 @@ | |
chdir: ~/tests/onboarding-e2e-tests | ||
|
||
- name: Test playwright scripts | ||
shell: "npx playwright test" | ||
shell: "npx playwright test --config=playwright.config.validations.js" | ||
args: | ||
chdir: ~/tests/onboarding-e2e-tests | ||
chdir: ~/tests/onboarding-e2e-tests |