-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from larskanis/update-pg
Allow use if pg-1.4.6+ and add Github Action CI to verify that it works
- Loading branch information
Showing
3 changed files
with
40 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: ci | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu, macos, windows ] | ||
ruby: [ '2.5', ruby-head ] | ||
runs-on: ${{ matrix.os }}-latest | ||
env: | ||
PGSERVICE: postgres | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- uses: ikalnytskyi/action-setup-postgres@v4 | ||
|
||
- run: bundle install | ||
- run: createdb activestorage_pglo_test | ||
|
||
# For some reason the db migrations needs to be executed explicitly on Windows | ||
- name: Copy and run migrations on Windows | ||
if: matrix.os == 'windows' | ||
run: | | ||
ridk exec cp -rv db/migrate test/dummy/db/ | ||
rake -f test/dummy/Rakefile active_storage:install db:migrate RAILS_ENV=test | ||
- run: bundle exec rake test |
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
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