Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mateo08c authored Jul 22, 2024
1 parent 0c64678 commit 24a10d2
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24a10d2

Please sign in to comment.