Unify symlink approach, allow folder argument

Migrated issue

Reported by: fjgarlin

Related to !138 (merged)

Problem/Motivation

Some issues like #3422323: Improve CSPELL needed a workaround purely because we are using symlinks. This was done that way from the very beginning to build the project, but maybe there is a better way now.

For Drupal 7 we have copied the files when we actually need the symlinks.

Steps to reproduce

See the struggle in #3422323: Improve CSPELL

Proposed resolution

  1. Fix Drupal 7 by creating the symlinks in the correct folder
  2. Separately, investigate a re-usable code snippet to copy all files, which can be added just to the specifc jobs that need it

Remaining tasks

Investigation, testing + MR

Related issue: Issue #3422323

Related issue: Issue #3397699

Related issue: Issue #3389338

Edited by drupalbot