Skip to content

Commit

Permalink
Merge pull request entanet-devops#5 from entanet-devops/PLAT-4423
Browse files Browse the repository at this point in the history
Build env file earlier
  • Loading branch information
dBrittainEntanet authored Sep 11, 2023
2 parents 59ce2ae + dad1e52 commit d08ec81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions tasks/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,8 @@

- name: Run behat tests.
block:
- name: Copy behat env file.
copy:
src: "{{ app_directory }}/.env.behat"
dest: "{{ app_directory }}/.env"

- name: Run Behat pipeline tests.
shell: 'vendor/bin/behat features/pipeline'
args:
chdir: "{{ app_directory }}"

- name: Remove behat env.
file:
path: "{{ app_directory }}/.env"
state: absent
when: run_behat.stat.exists and behat_features.stat.exists
3 changes: 1 addition & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
when: run_composer.stat.exists

- include: testing.yml
- include: env.yml

- name: Check if npm package.json exists
stat:
Expand All @@ -81,8 +82,6 @@
working_dir: "{{ app_directory }}"
when: run_composer.stat.exists

- include: env.yml

- name: Craft Security Key Generate.
shell: 'php craft setup/security-key'
args:
Expand Down

0 comments on commit d08ec81

Please sign in to comment.