Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crespire committed Oct 17, 2024
1 parent 1feb788 commit 2471ce8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/actions/setup-database/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Setup Test Database
description: Set up the test Database

runs:
using: "composite"
steps:
- name: Setup PSQL
shell: bash
run: |
cp config/database.yml.sample config/database.yml
bundle exec RAILS_ENV=test rails db:setup
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ jobs:
bundler-cache: true

- name: Setup Test Database
run: bundle exec rails db:setup
env:
RAILS_ENV: test
uses ./.github/actions/setup-database

- name: Precompile Assets
run: bundle exec rails assets:precompile
Expand Down

0 comments on commit 2471ce8

Please sign in to comment.