Skip to content

Commit

Permalink
Make sure test fails with default
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Apr 24, 2024
1 parent cbc93e3 commit 7be2e8e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Make nightly build check latest isle-buildkit
if: github.event_name == 'schedule'
run: |-
echo "TAG=main" >> $GITHUB_OUTPUT
- name: Setup make and secrets for Windows
if: matrix.os == 'windows-latest'
run: |
Expand Down Expand Up @@ -55,6 +60,24 @@ jobs:
exit 1
fi
- name: "Make sure we can export the site config through the UI"
run: |-
# login as admin
COOKIE=$(curl -s -c - $(make login))
# try exporting the config through the UI
STATUS=$(curl -s \
--cookie <(echo "$COOKIE") \
-w '%{http_code}' \
-o /dev/null \
https://islandora.traefik.me/admin/config/development/configuration/full/export-download)
# make sure the config export worked
if [ ${STATUS} -ne 200 ]; then
echo "Could not export config through Drupal UI"
echo ${STATUS}
exit 1
fi
- name: make build
run: make build
shell: bash
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,7 @@ hydrate: update-settings-php update-config-from-environment solr-cores namespace
.SILENT: login
## Runs "drush uli" to provide a direct login link for user 1
login:
echo "\n\n=========== LOGIN ==========="
docker compose exec -T drupal with-contenv bash -lc "drush uli --uri=$(DOMAIN)"
echo "=============================\n"

docker compose exec -T drupal with-contenv bash -lc "drush uli --uri=https://$(DOMAIN)"

.PHONY: init
init: generate-secrets
Expand Down

0 comments on commit 7be2e8e

Please sign in to comment.