diff --git a/.gitea/workflows/compile.yml b/.gitea/workflows/compile.yml index 3f8de53..3bc4707 100644 --- a/.gitea/workflows/compile.yml +++ b/.gitea/workflows/compile.yml @@ -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 \ No newline at end of file