One last attempt, removing the creating of pgsql and adding password to the services
This commit is contained in:
@@ -1,7 +1,3 @@
|
|||||||
name: Compile
|
|
||||||
run-name: Compiling software (Ubuntu)
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Compile:
|
Compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -11,6 +7,8 @@ jobs:
|
|||||||
image: postgres:16
|
image: postgres:16
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: fgbot_db
|
POSTGRES_DB: fgbot_db
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: test_password
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
options: >-
|
options: >-
|
||||||
@@ -29,11 +27,6 @@ jobs:
|
|||||||
apt-get install -y ruby-full libsodium-dev libpq-dev
|
apt-get install -y ruby-full libsodium-dev libpq-dev
|
||||||
gem install bundler
|
gem install bundler
|
||||||
|
|
||||||
- name: Create PostgreSQL database
|
|
||||||
run: |
|
|
||||||
sudo -u postgres createuser -s postgres
|
|
||||||
createdb fgbot_db
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bundle install
|
run: bundle install
|
||||||
|
|
||||||
@@ -43,5 +36,6 @@ jobs:
|
|||||||
TEST_SERVER_ID: ${{ secrets.SERVER_ID }}
|
TEST_SERVER_ID: ${{ secrets.SERVER_ID }}
|
||||||
DB_HOST: 127.0.0.1
|
DB_HOST: 127.0.0.1
|
||||||
DB_USER: postgres
|
DB_USER: postgres
|
||||||
|
DB_PASS: test_password
|
||||||
DB_NAME: fgbot_db
|
DB_NAME: fgbot_db
|
||||||
run: bundle exec ruby main.rb
|
run: bundle exec ruby main.rb
|
||||||
Reference in New Issue
Block a user