Skip to content

Commit

Permalink
Merge pull request #256 from Automattic/fix-ci
Browse files Browse the repository at this point in the history
ci: fix scenario testing
  • Loading branch information
sjinks authored Jun 22, 2024
2 parents 74bbda0 + c5f92d5 commit c9e03d1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ jobs:
- feature: cron
- feature: cron-control-runner
- feature: elasticsearch
filter: alpine-base-persist
- feature: elasticsearch
filter: alpine-base-nopersist
- feature: elasticsearch
filter: ubuntu-base-persist
- feature: elasticsearch
filter: ubuntu-base-nopersist
- feature: mailpit
- feature: memcached
- feature: mariadb
Expand Down Expand Up @@ -113,9 +120,9 @@ jobs:
- name: Run tests
run: |
if [ -z "${{ matrix.test.filter }}" ]; then
devcontainer features test -p features --skip-autogenerated --skip-duplicated -f "${{ matrix.test.name }}"
devcontainer features test -p features --skip-autogenerated --skip-duplicated -f "${{ matrix.test.feature }}"
else
devcontainer features test -p features --skip-autogenerated --skip-duplicated -f "${{ matrix.test.name }}" --filter "${{ matrix.test.filter }}"
devcontainer features test -p features --skip-autogenerated --skip-duplicated -f "${{ matrix.test.feature }}" --filter "${{ matrix.test.filter }}"
fi
global:
Expand Down
2 changes: 1 addition & 1 deletion features/src/phpmyadmin/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "phpmyadmin",
"name": "phpMyAdmin",
"version": "1.1.9",
"version": "1.1.10",
"description": "Installs phpMyAdmin into the Dev Environment",
"options": {
"enabled": {
Expand Down
2 changes: 0 additions & 2 deletions features/src/phpmyadmin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ if [ "${ENABLED}" = "true" ]; then
curl -SL https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz | tar --strip-components=1 -zxm -f - -C /usr/share/webapps/phpmyadmin

LC_ALL=C < /dev/urandom tr -dc _A-Z-a-z-0-9 2> /dev/null | head -c24 > /etc/conf.d/phpmyadmin-password
chown "${_REMOTE_USER}:${_REMOTE_USER}" /etc/conf.d/phpmyadmin-password
chmod 0600 /etc/conf.d/phpmyadmin-password
if [ -d /etc/nginx/conf.extra ]; then
htpasswd -nim vipgo < /etc/conf.d/phpmyadmin-password > /etc/nginx/conf.extra/.htpasswd-pma
chown "${NGINX_USER}:${NGINX_USER}" /etc/nginx/conf.extra/.htpasswd-pma
Expand Down
2 changes: 2 additions & 0 deletions features/test/mariadb/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"ubuntu-root-persist": {
"image": "ghcr.io/automattic/vip-codespaces/ubuntu-base:latest",
"remoteUser": "root",
"overrideCommand": false,
"features": {
"mariadb": {
Expand Down Expand Up @@ -59,6 +60,7 @@
},
"alpine-root-persist": {
"image": "ghcr.io/automattic/vip-codespaces/alpine-base:latest",
"remoteUser": "root",
"overrideCommand": false,
"features": {
"mariadb": {
Expand Down

0 comments on commit c9e03d1

Please sign in to comment.