Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/test-assertions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
test_site_repo_token: ${{ inputs.test_site_repo_token }}

- name: Assert the state after running the action
shell: sh
shell: bash
working-directory: test
run: |
# Assert the state after running the action
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test-checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ inputs:
runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: ${{ inputs.test_site_repo }}
token: ${{ inputs.test_site_repo_token }}
path: test/site
fetch-depth: 0

- uses: actions/checkout@v4
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: ${{ inputs.test_config_repo }}
token: ${{ inputs.test_config_repo_token }}
Expand Down
9 changes: 6 additions & 3 deletions .github/actions/test-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ runs:
git add .
git commit -m "Add initial mock config"
echo modified > c
touch e
git add c e
echo baseline > e
mkdir -p language/en
echo subdir-config > language/en/system.site.yml
echo dotfile-config > .htaccess
git add c e language .htaccess
git rm d
git commit -m "Updated"
git push origin HEAD:${{ inputs.test_config_repo_branch }}
Expand All @@ -87,7 +90,7 @@ runs:
git checkout --orphan ${{ inputs.test_site_repo_pr_branch_base }}-new
git rm -rf .
mkdir -p a z config/sync
cp -r ../remote/* config/sync
find ../remote -mindepth 1 -maxdepth 1 ! -name .git -exec cp -a {} config/sync \;
touch {a,z}/.gitkeep b
git add .
git commit -m "Add mock Drupal site"
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test-script.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test Drupal host script

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:

jobs:
test-script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Cache BATS
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0
with:
path: .bats
key: bats-${{ hashFiles('bats.lock') }}

- run: make test
Loading
Loading