From: Nick Porter Date: Wed, 18 Dec 2024 13:48:03 +0000 (+0000) Subject: Add memcached to CI tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e7602d3258cb8845e9d4e9ec3d7b433136d53d0;p=thirdparty%2Ffreeradius-server.git Add memcached to CI tests --- diff --git a/.github/actions/ci-tests/action.yml b/.github/actions/ci-tests/action.yml index dd0254e300d..1f70b9d7a6b 100644 --- a/.github/actions/ci-tests/action.yml +++ b/.github/actions/ci-tests/action.yml @@ -57,6 +57,10 @@ inputs: description: SMTP server SMTP port default: 2525 + memcached_test_server: + description: Memcached server host + default: 127.0.0.1 + use_docker: desription: True if running in a Docker container default: false @@ -104,6 +108,7 @@ runs: 389-ds \ dovecot-imapd \ exim4 \ + memcached \ openresty \ redis-server \ slapd @@ -140,7 +145,7 @@ runs: sudo sh -c "echo host all all 127.0.0.1/32 trust > /etc/postgresql/$PG_VER/main/pg_hba.conf" sudo sh -c "echo local all all trust >> /etc/postgresql/$PG_VER/main/pg_hba.conf" - sudo systemctl start mysql postgresql redis-server + sudo systemctl start mysql postgresql redis-server memcached mysql -h 127.0.0.1 -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '';"; @@ -155,6 +160,7 @@ runs: run: | mysql -h ${{ inputs.sql_mysql_test_server }} -u root -e "CREATE USER 'radius'@'%' IDENTIFIED WITH mysql_native_password; ALTER USER 'radius'@'%' IDENTIFIED BY 'radpass';" mysql -h ${{ inputs.sql_mysql_test_server }} -u root -e "GRANT ALL ON radius.* TO 'radius'; FLUSH PRIVILEGES;" + memcached -u memcache -d - name: Setup databases shell: bash @@ -241,6 +247,7 @@ runs: IMAP_TEST_SERVER: ${{ inputs.imap_test_server }} IMAP_TEST_SERVER_PORT: ${{ inputs.imap_test_server_port }} IMAP_TEST_SERVER_SSL_PORT: ${{ inputs.imap_test_server_ssl_port }} + CACHE_MEMCACHED_TEST_SERVER: ${{ inputs.memcached_test_server }} # Restore ucf - name: Restore ucf