diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml index 42830f61..a0199245 100644 --- a/.github/workflows/rubyonrails.yml +++ b/.github/workflows/rubyonrails.yml @@ -7,9 +7,9 @@ name: "Ruby on Rails CI" on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: test: runs-on: ubuntu-latest @@ -37,10 +37,10 @@ jobs: run: echo $GITHUB_HEAD_REF > CURRENT_VERSION # Add or replace database setup steps here - name: Set up database schema - run: env; bin/rails db:schema:load + run: DATABASE_URL="postgres://rails:password@localhost:5432/rails_test" bin/rails db:schema:load # Add or replace test runners here - name: Run tests - run: bin/rake + run: DATABASE_URL="postgres://rails:password@localhost:5432/rails_test" bin/rake lint: runs-on: ubuntu-latest