File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+ on :
3+ push :
4+ pull_request :
5+
6+ jobs :
7+ ci :
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ os : [ ubuntu, macos, windows ]
12+ ruby : [ '2.5', ruby-head ]
13+ runs-on : ${{ matrix.os }}-latest
14+ env :
15+ PGSERVICE : postgres
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+ - uses : ruby/setup-ruby@v1
20+ with :
21+ ruby-version : ${{ matrix.ruby }}
22+ - uses : ikalnytskyi/action-setup-postgres@v4
23+
24+ - run : bundle install
25+ - run : createdb activestorage_pglo_test
26+
27+ # For some reason the db migrations needs to be executed explicitly on Windows
28+ - name : Copy and run migrations on Windows
29+ if : matrix.os == 'windows'
30+ run : |
31+ ridk exec cp -rv db/migrate test/dummy/db/
32+ rake -f test/dummy/Rakefile active_storage:install db:migrate RAILS_ENV=test
33+ - run : bundle exec rake test
Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ gem 'image_processing', '~> 1.2'
1414
1515# To use a debugger
1616# gem 'byebug', group: [:development, :test]
17+
18+ # Required on Windows only
19+ gem 'tzinfo-data'
You can’t perform that action at this time.
0 commit comments