|
89 | 89 | DATABASE_PORT: 3306 |
90 | 90 | DATABASE_USERNAME: github |
91 | 91 | DATABASE_PASSWORD: github |
92 | | - |
93 | | - test-unsupported: |
94 | | - name: "Active Record ${{ matrix.active_record }} + Ruby ${{ matrix.ruby }}" |
95 | | - needs: [test-supported] |
96 | | - runs-on: ubuntu-latest |
97 | | - services: |
98 | | - mysql: |
99 | | - image: mysql |
100 | | - env: |
101 | | - MYSQL_ROOT_PASSWORD: github |
102 | | - MYSQL_USER: github |
103 | | - MYSQL_PASSWORD: github |
104 | | - MYSQL_DATABASE: active_record_doctor_primary |
105 | | - options: >- |
106 | | - --health-cmd "mysqladmin ping -h 127.0.0.1" |
107 | | - --health-interval 10s |
108 | | - --health-timeout 5s |
109 | | - --health-retries 5 |
110 | | - ports: |
111 | | - - 3306:3306 |
112 | | - strategy: |
113 | | - matrix: |
114 | | - ruby: ["2.4", "2.5", "2.6", "2.7"] |
115 | | - active_record: ["4.2", "5.0", "5.1", "5.2", "6.0"] |
116 | | - exclude: |
117 | | - - ruby: "2.7" |
118 | | - active_record: "4.2" |
119 | | - - ruby: "2.4" |
120 | | - active_record: "6.0" |
121 | | - include: |
122 | | - - ruby: "3.0" |
123 | | - active_record: "6.0" |
124 | | - - ruby: "3.1" |
125 | | - active_record: "6.0" |
126 | | - - ruby: "3.2" |
127 | | - active_record: "6.0" |
128 | | - env: |
129 | | - BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile.activerecord-${{ matrix.active_record }}.x |
130 | | - steps: |
131 | | - - uses: actions/checkout@v4 |
132 | | - - uses: ruby/setup-ruby@v1 |
133 | | - with: |
134 | | - ruby-version: ${{ matrix.ruby }} |
135 | | - rubygems: ${{ (matrix.ruby == '2.4' || matrix.ruby == '2.5' || matrix.ruby == '2.6') && '3.2.3' || '' }} |
136 | | - bundler-cache: true |
137 | | - - name: Prepare the database |
138 | | - run: | |
139 | | - mysqladmin -h127.0.0.1 -uroot -pgithub create active_record_doctor_secondary |
140 | | - mysql -h127.0.0.1 -uroot -pgithub -e "GRANT ALL PRIVILEGES ON active_record_doctor_secondary.* TO 'github'" |
141 | | - - name: Run the test suite against MySQL |
142 | | - run: bundle exec rake test:mysql2 |
143 | | - env: |
144 | | - # We can't use localhost because that makes the MySQL client try |
145 | | - # connecting via a Unix socket instead of TCP. |
146 | | - DATABASE_HOST: 127.0.0.1 |
147 | | - DATABASE_PORT: 3306 |
148 | | - DATABASE_USERNAME: github |
149 | | - DATABASE_PASSWORD: github |
0 commit comments