Skip to content

Commit

Permalink
refactor: Create yaml file to trigger e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarugula committed Dec 26, 2023
1 parent 64b0d8f commit 8ac7c45
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions test/deploy/onboarding-tests/roles/configure/tasks/main.yml
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

0 comments on commit 8ac7c45

Please sign in to comment.