-
Notifications
You must be signed in to change notification settings - Fork 69
TravisCI -> GH Actions #648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dd8ced9
testing GH Actions
markets b08796c
Merge branch 'develop' into gh_actions
markets d0078d4
Merge branch 'develop' into gh_actions
markets 4bd236d
migrate hstore column to jsonb
markets 103aadf
actually run tests
markets 740633c
ubuntu 18 is not supported + add coverage report
markets dee3cb5
ERROR: unrecognized configuration parameter "idle_in_transaction_sess…
markets b305986
revert other schema changes
markets aba4392
update pg gem
markets 149a4b2
testing...
markets f9e342f
testing...
markets 8a5ecae
testing...
markets 835c83c
testing...
markets f6d0a68
testing...
markets 557fac0
more tests
markets e6a0d6d
testing things
markets a76b50e
testing things
markets a6bfdc3
try with postgres production version
markets 38c31d3
keep original flags for staging/pro
markets File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:9.4 | ||
ports: ["5432:5432"] | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: timeoverflow_test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- name: Run tests | ||
env: | ||
RAILS_ENV: test | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
run: | | ||
bundle exec rails db:setup | ||
bundle exec rspec | ||
- name: Publish code coverage | ||
uses: paambaati/codeclimate-action@v3.2.0 | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: ${{ github.workspace }}/coverage/coverage.json:simplecov |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class MigrateHstoreToJson < ActiveRecord::Migration[6.1] | ||
def up | ||
rename_column :categories, :name_translations, :name_translations_hstore | ||
add_column :categories, :name_translations, :jsonb, default: {}, null: false, index: { using: 'gin' } | ||
execute 'UPDATE "categories" SET "name_translations" = json_object(hstore_to_matrix("name_translations_hstore"))::jsonb' | ||
remove_column :categories, :name_translations_hstore | ||
end | ||
|
||
def down | ||
rename_column :categories, :name_translations, :name_translations_jsonb | ||
add_column :categories, :name_translations, :hstore, default: {}, null: false | ||
execute 'UPDATE "categories" SET "name_translations" = (SELECT hstore(key, value) FROM jsonb_each_text("name_translations_jsonb"))' | ||
remove_column :categories, :name_translations_jsonb | ||
end | ||
end |
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.