Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Mar 27, 2024
1 parent 89fc9d0 commit a165cd2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1

jobs:
test-report:
Expand All @@ -24,10 +25,16 @@ jobs:
--health-retries 5
env:
POSTGRES_PASSWORD: postgres

redis:
image: redis:3.2-alpine
ports: ["6379:6379"]

env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
RAILS_ENV: test

steps:
- uses: actions/checkout@v2
Expand All @@ -39,9 +46,19 @@ jobs:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true

- uses: nanasess/setup-chromedriver@v2

- name: Setup Database
run: bundle exec rake test_app

- name: Precompile assets
working-directory: ./spec/decidim_dummy_app/
env:
BUNDLE_GEMFILE: ../../Gemfile
run: |
npm install
bundle exec rake assets:precompile
- name: Run RSpec
run: bundle exec rspec
env:
Expand Down

0 comments on commit a165cd2

Please sign in to comment.