One last attempt, removing the creating of pgsql and adding password to the services

This commit is contained in:
2026-01-06 18:23:44 -03:00
parent e037333da1
commit 24dbb16ad7

View File

@@ -1,7 +1,3 @@
name: Compile
run-name: Compiling software (Ubuntu)
on: [push]
jobs:
Compile:
runs-on: ubuntu-latest
@@ -11,6 +7,8 @@ jobs:
image: postgres:16
env:
POSTGRES_DB: fgbot_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test_password
ports:
- 5432:5432
options: >-
@@ -29,11 +27,6 @@ jobs:
apt-get install -y ruby-full libsodium-dev libpq-dev
gem install bundler
- name: Create PostgreSQL database
run: |
sudo -u postgres createuser -s postgres
createdb fgbot_db
- name: Install dependencies
run: bundle install
@@ -43,5 +36,6 @@ jobs:
TEST_SERVER_ID: ${{ secrets.SERVER_ID }}
DB_HOST: 127.0.0.1
DB_USER: postgres
DB_PASS: test_password
DB_NAME: fgbot_db
run: bundle exec ruby main.rb