Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jul 30, 2021
1 parent 561bcec commit ee80623
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
PGPASSWORD: postgres
TEST_CONFIG: ./spec/config.github.yml

continue-on-error: ${{ matrix.experimental }}
Expand All @@ -68,9 +67,7 @@ jobs:
- uses: actions/checkout@v2
- name: Set up Database
run: |
cat ./spec/config.github.yml
env | grep TEST_CONFIG
cat $TEST_CONFIG
psql -c "CREATE ROLE runner SUPERUSER LOGIN CREATEDB;" -U postgres -h localhost
psql -c "CREATE DATABASE chronomodel;" -U postgres -h localhost
psql -c "CREATE DATABASE chronomodel_railsapp;" -U postgres -h localhost
- name: Set up Ruby
Expand All @@ -79,22 +76,8 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run specs
run: bundle exec rake

coverage:
needs: [ test ]
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '12'
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- uses: paambaati/[email protected]
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: dedfb7472ee410eec459bff3681d9a8fd8dd237e9bd7e8675a7c8eb7e253bba9
with:
coverageCommand: yarn coverage
coverageCommand: bundle exec rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ default: &default
encoding: unicode
pool: 20
database: chronomodel_railsapp
host: <%= ENV['CI'] ? 'localhost' : '' %>

development:
<<: *default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ default: &default
encoding: unicode
pool: 20
database: chronomodel_railsapp
host: <%= ENV['CI'] ? 'localhost' : '' %>

development:
<<: *default
Expand Down

0 comments on commit ee80623

Please sign in to comment.