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 a8a7b73
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .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,11 +46,24 @@ 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
run: |
cp lib/decidim/kids/templates/dummy_age_authorization_handler.rb spec/decidim_dummy_app/app/services/dummy_age_authorization_handler.rb
cp lib/decidim/kids/templates/verifications_initializer.rb spec/decidim_dummy_app/config/initializers/verifications_initializer.rb
bundle exec rspec
env:
SIMPLECOV: 1
CODECOV: 1
Expand Down

0 comments on commit a8a7b73

Please sign in to comment.