Skip to content

Commit

Permalink
refactor: Add command to install git
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarugula committed Jan 30, 2024
1 parent 54e835d commit c01b707
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions test/deploy/onboarding-tests/roles/configure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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

0 comments on commit c01b707

Please sign in to comment.