From 24a10d209c7d684f59022153a550dcd8bc23f463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o?= Date: Mon, 22 Jul 2024 20:29:20 +0200 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1f48d80..9e3dc1c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -40,21 +40,12 @@ jobs: sleep 3 done - - name: Download config from Pastebin - run: | - curl -o config.cfg https://pastebin.com/raw/isWKLmAv - - - name: Download MySQL plugin - run: | - curl -L -o mysql-linux-amd64.so https://github.com/glauth/glauth-mysql/releases/download/v2.3.2/mysql-linux-amd64.so - - - name: Run GLAUTH container - run: | - docker run -t \ - -v $(pwd)/config.cfg:/app/config/config.cfg \ - -v $(pwd)/mysql-linux-amd64.so:/app/plugins/mysql-linux-amd64.so \ - glauth/glauth + - name: Download SQL script + run: curl -o init_db.sql https://pastebin.com/raw/rkLAasAg + - name: Initialize database + run: mysql -h 127.0.0.1 -u glauth -ppassword glauth < init_db.sql + - name: Test env: DB_USERNAME: glauth