Skip to content

Commit

Permalink
Split GitHub actions Drupal scaffold config into multiple steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambient-Impact committed May 25, 2024
1 parent ad602dd commit 4393ec8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,21 @@ jobs:
#
# @see https://github.com/marketplace/actions/run-jq
- name: Read existing Drupal scaffold config from composer.json
uses: sergeysova/jq-action@v2
id: drupal-scaffold-config
run: composer config extra.drupal-scaffold.file-mapping >> $GITHUB_OUTPUT

- name: Unset the .ht.router.php Drupal scaffold file mapping
uses: sergeysova/jq-action@v2
id: drupal-scaffold-config-modified
with:
cmd: |
composer config extra.drupal-scaffold.file-mapping | \
echo '${{ steps.drupal-scaffold-config.outputs.value }}' | \
jq --compact-output 'del(."[web-root]/.ht.router.php")'
- name: Scaffold .ht.router.php for PHPUnit tests
- name: Save updated Drupal scaffold file mapping for PHPUnit tests
run: |
composer config extra.drupal-scaffold.file-mapping --json \
${{ steps.drupal-scaffold-config.outputs.value }}
${{ steps.drupal-scaffold-config-modified.outputs.value }}
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
Expand Down

0 comments on commit 4393ec8

Please sign in to comment.