-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e052b6
commit 85dce34
Showing
1 changed file
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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' }} | ||
|