Skip to content

Commit

Permalink
fixed ruby ci
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Nov 23, 2023
1 parent 4e052b6 commit 85dce34
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,26 @@ jobs:
bundle config set deployment '[secure]'
bundle env
head -n1 $(which bundle)
- name: Copy config files
run: |
cp config/application.yml.example config/application.yml
cp config/database_ci.yml config/database.yml
# - name: Install dependencies
# run: |
# bundle install --with development --jobs 4 --retry 3 --path vendor/bundle

- name: Setup database
run: |
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:schema:load
bundle exec rake db:seed
bundle exec rails assets:precompile
- name: Run Tests
- name: Run Tests with Code Climate
uses: paambaati/[email protected]
env:
PG_DATABASE: postgres
PG_HOST: localhost
Expand All @@ -44,15 +62,20 @@ jobs:
RAILS_ENV: test
COVERAGE: true
DISABLE_SPRING: 1
run: |
cp config/application.yml.example config/application.yml
cp config/database_ci.yml config/database.yml
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:schema:load
bundle exec rake db:seed
bundle exec rails assets:precompile
bundle exec rspec spec
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: bundle exec rspec spec
debug: true

# run: |
# # cp config/application.yml.example config/application.yml
# # cp config/database_ci.yml config/database.yml
# bundle exec rake db:create
# bundle exec rake db:migrate
# bundle exec rake db:schema:load
# bundle exec rake db:seed
# bundle exec rails assets:precompile
# bundle exec rspec spec

- name: Dependabot
if: ${{ github.event.label.name == 'dependencies' }}
Expand Down

0 comments on commit 85dce34

Please sign in to comment.