]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add memcached to CI tests
authorNick Porter <nick@portercomputing.co.uk>
Wed, 18 Dec 2024 13:48:03 +0000 (13:48 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 18 Dec 2024 18:40:37 +0000 (18:40 +0000)
.github/actions/ci-tests/action.yml

index dd0254e300da9984cfc14eb4325cc3396b3ca920..1f70b9d7a6b87c14f96158dea427090098da15cb 100644 (file)
@@ -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