|
7 | 7 | branches: [ master ]
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - rubocop: |
11 |
| - runs-on: ubuntu-18.04 |
12 |
| - steps: |
13 |
| - - uses: actions/checkout@v2 |
14 |
| - - name: Set up Ruby |
15 |
| - uses: ruby/setup-ruby@v1 |
16 |
| - with: |
17 |
| - ruby-version: 2.7 |
18 |
| - bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
19 |
| - - name: Run Rubocop |
20 |
| - run: bundle exec rake rubocop |
| 10 | +# rubocop: |
| 11 | +# name: Rubocop |
| 12 | +# runs-on: ubuntu-18.04 |
| 13 | +# steps: |
| 14 | +# - uses: actions/checkout@v2 |
| 15 | +# - name: Set up Ruby |
| 16 | +# uses: ruby/setup-ruby@v1 |
| 17 | +# with: |
| 18 | +# ruby-version: 2.7 |
| 19 | +# bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
| 20 | +# - name: Run Rubocop |
| 21 | +# run: bundle exec rake rubocop |
21 | 22 |
|
22 |
| - test-on-mysql: |
23 |
| - runs-on: ubuntu-18.04 |
24 |
| - strategy: |
25 |
| - matrix: |
26 |
| - ruby-version: ['2.6', '2.7', '3.0'] |
27 |
| - mysql-version: ['5.7', '8.0'] |
| 23 | +# test-on-mysql: |
| 24 | +# name: RSpec on MySQL |
| 25 | +# runs-on: ubuntu-18.04 |
| 26 | +# strategy: |
| 27 | +# matrix: |
| 28 | +# ruby-version: ['2.6', '2.7', '3.0'] |
| 29 | +# mysql-version: ['5.7', '8.0'] |
| 30 | +# steps: |
| 31 | +# - uses: actions/checkout@v2 |
| 32 | +# - uses: ankane/setup-mysql@v1 |
| 33 | +# with: |
| 34 | +# mysql-version: ${{ matrix.mysql-version }} |
| 35 | +# - name: Create the test database |
| 36 | +# run: mysqladmin create rails_cursor_pagination_testing |
| 37 | +# - name: Set up Ruby |
| 38 | +# uses: ruby/setup-ruby@v1 |
| 39 | +# with: |
| 40 | +# ruby-version: ${{ matrix.ruby-version }} |
| 41 | +# bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
| 42 | +# - name: Run tests |
| 43 | +# run: bundle exec rake spec |
| 44 | +# env: |
| 45 | +# DB_ADAPTER: mysql2 |
| 46 | +# DB_HOST: 127.0.0.1 |
| 47 | +# DB_USER: root |
28 | 48 |
|
29 |
| - steps: |
30 |
| - - uses: actions/checkout@v2 |
31 |
| - - uses: ankane/setup-mysql@v1 |
32 |
| - with: |
33 |
| - mysql-version: ${{ matrix.mysql-version }} |
34 |
| - - name: Create the test database |
35 |
| - run: mysqladmin create rails_cursor_pagination_testing |
36 |
| - - name: Set up Ruby |
37 |
| - uses: ruby/setup-ruby@v1 |
38 |
| - with: |
39 |
| - ruby-version: ${{ matrix.ruby-version }} |
40 |
| - bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
41 |
| - - name: Run tests |
42 |
| - run: bundle exec rake spec |
43 |
| - env: |
44 |
| - DB_ADAPTER: mysql2 |
45 |
| - DB_HOST: 127.0.0.1 |
46 |
| - DB_USER: root |
| 49 | +# test-on-postgres: |
| 50 | +# name: RSpec on Postgres |
| 51 | +# runs-on: ubuntu-latest |
| 52 | +# strategy: |
| 53 | +# matrix: |
| 54 | +# ruby-version: ['2.6']#, '2.7', '3.0'] |
| 55 | +# postgres-version: ['13']#, '12', '11', '10', '9'] |
| 56 | +# steps: |
| 57 | +# - uses: actions/checkout@v2 |
| 58 | +# - name: Start Postgres |
| 59 | +# uses: harmon758/postgresql-action@v1 |
| 60 | +# with: |
| 61 | +# postgresql version: ${{ matrix.postgres-version }} |
| 62 | +# postgresql db: rails_cursor_pagination_testing |
| 63 | +## postgresql user: ${{ env.USER }} |
| 64 | +# - name: Set up Ruby |
| 65 | +# uses: ruby/setup-ruby@v1 |
| 66 | +# with: |
| 67 | +# ruby-version: ${{ matrix.ruby-version }} |
| 68 | +# bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
| 69 | +# - name: Run tests |
| 70 | +# run: bundle exec rake spec |
| 71 | +# env: |
| 72 | +# DB_ADAPTER: postgresql |
| 73 | +# DB_HOST: 127.0.0.1 |
| 74 | +# DB_USER: ${{ env.USER }} |
| 75 | + |
| 76 | +# test-on-postgres: |
| 77 | +# runs-on: ubuntu-latest |
| 78 | +# strategy: |
| 79 | +# matrix: |
| 80 | +# ruby-version: ['2.6', '2.7', '3.0'] |
| 81 | +# postgres-version: [13, 12, 11, 10, 9.6] |
| 82 | +# |
| 83 | +# steps: |
| 84 | +# - uses: actions/checkout@v2 |
| 85 | +# - uses: ankane/setup-postgres@v1 |
| 86 | +# with: |
| 87 | +# postgres-version: ${{ matrix.postgres-version }} |
| 88 | +# - name: Create the test database |
| 89 | +# run: createdb rails_cursor_pagination_testing |
| 90 | +# - name: Set up Ruby |
| 91 | +# uses: ruby/setup-ruby@v1 |
| 92 | +# with: |
| 93 | +# ruby-version: ${{ matrix.ruby-version }} |
| 94 | +# bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
| 95 | +# - name: Run tests |
| 96 | +# run: bundle exec rake spec |
| 97 | +# env: |
| 98 | +# DB_ADAPTER: postgresql |
| 99 | +# DB_HOST: '' |
| 100 | +# DB_USER: ${{ env.USER }} |
47 | 101 |
|
48 | 102 | test-on-postgres:
|
49 |
| - runs-on: ubuntu-18.04 |
| 103 | + runs-on: ubuntu-latest |
50 | 104 | strategy:
|
51 | 105 | matrix:
|
52 | 106 | ruby-version: ['2.6', '2.7', '3.0']
|
53 |
| - postgres-version: [13, 12, 11, 10, 9.6] |
| 107 | + postgres-version: [13, 12] |
54 | 108 |
|
55 | 109 | steps:
|
56 | 110 | - uses: actions/checkout@v2
|
|
0 commit comments