-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
93 additions
and
61 deletions.
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
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 |
---|---|---|
@@ -1,50 +1,25 @@ | ||
name: Build | ||
name: MacOS | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: >- | ||
${{ matrix.os }} ruby ${{ matrix.ruby }} ${{ matrix.db }} | ||
# Run all the tests on the new environment as much as possible. | ||
# https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.allow-failure || false }} | ||
strategy: | ||
matrix: | ||
os: | ||
# Use ubuntu-18.04 instead of ubuntu-20.04 temporarily, due to a failing test on mysql 8.0. | ||
# https://github.com/brianmario/mysql2/issues/1165 | ||
# - ubuntu-20.04 # focal | ||
- ubuntu-18.04 # bionic | ||
ruby: | ||
- '3.2' | ||
- '3.1' | ||
- '3.0' | ||
- '2.7' | ||
- '2.6' | ||
- '2.5' | ||
- '2.4' | ||
- '2.3' | ||
- '2.2' | ||
- '2.1' | ||
db: [''] | ||
include: | ||
# Comment out due to ci/setup.sh stucking. | ||
# - {os: ubuntu-18.04, ruby: 2.4, db: mariadb10.1} | ||
- {os: ubuntu-20.04, ruby: '2.4', db: mariadb10.3} | ||
- {os: ubuntu-18.04, ruby: '2.4', db: mysql57} | ||
- {os: ubuntu-20.04, ruby: '2.4', db: mysql80} | ||
- {os: ubuntu-18.04, ruby: 'head', db: ''} | ||
# db: A DB's brew package name in macOS case. | ||
# Set a name "db: '[email protected]'" when using an old version. | ||
# MariaDB lastet version | ||
# Allow failure due to the following test failures that rarely happens. | ||
# https://github.com/brianmario/mysql2/issues/1194 | ||
- {os: macos-latest, ruby: '2.6', db: mariadb, allow-failure: true} | ||
- {os: macos-latest, ruby: '2.6', db: mariadb@10.6, allow-failure: true} | ||
# MySQL latest version | ||
# Allow failure due to the issue #1194. | ||
- {os: macos-latest, ruby: '2.6', db: mysql, allow-failure: true} | ||
- {os: macos-latest, ruby: '2.6', db: mysql@8, allow-failure: true} | ||
# On the fail-fast: true, it cancels all in-progress jobs | ||
# if any matrix job fails unlike Travis fast_finish. | ||
# if any matrix job fails, which we don't want. | ||
fail-fast: false | ||
env: | ||
BUNDLE_WITHOUT: development | ||
|
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,43 @@ | ||
name: Ubuntu Focal 20.04 with Ruby 2.x | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: >- | ||
${{ matrix.os }} ruby ${{ matrix.ruby }} ${{ matrix.db }} | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.allow-failure || false }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-20.04 # focal | ||
ruby: | ||
- '2.7' | ||
- '2.6' | ||
- '2.5' | ||
- '2.4' | ||
- '2.3' | ||
- '2.2' | ||
- '2.1' | ||
- '2.0' | ||
db: [''] | ||
include: | ||
- {os: ubuntu-20.04, ruby: '2.7', db: mariadb10.6} | ||
- {os: ubuntu-20.04, ruby: '2.7', db: mysql57} | ||
- {os: ubuntu-20.04, ruby: '2.7', db: mysql80} | ||
# On the fail-fast: true, it cancels all in-progress jobs | ||
# if any matrix job fails, which we don't want. | ||
fail-fast: false | ||
env: | ||
BUNDLE_WITHOUT: development | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# https://github.com/ruby/setup-ruby | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- if: matrix.db != '' | ||
run: echo 'DB=${{ matrix.db }}' >> $GITHUB_ENV | ||
- run: sudo echo "127.0.0.1 mysql2gem.example.com" | sudo tee -a /etc/hosts | ||
- run: bash ci/setup.sh | ||
- run: bundle exec rake spec |
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,39 @@ | ||
name: Ubuntu Jammy 22.04 with Ruby 3.x | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: >- | ||
${{ matrix.os }} ruby ${{ matrix.ruby }} ${{ matrix.db }} | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.allow-failure || false }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-22.04 # jammy | ||
ruby: | ||
- '3.2' | ||
- '3.1' | ||
- '3.0' | ||
db: [''] | ||
include: | ||
- {os: ubuntu-22.04, ruby: '3.0', db: mariadb10.6} | ||
- {os: ubuntu-22.04, ruby: '3.0', db: mysql57} | ||
- {os: ubuntu-22.04, ruby: '3.0', db: mysql80} | ||
- {os: ubuntu-22.04, ruby: 'head', db: ''} | ||
# On the fail-fast: true, it cancels all in-progress jobs | ||
# if any matrix job fails, which we don't want. | ||
fail-fast: false | ||
env: | ||
BUNDLE_WITHOUT: development | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# https://github.com/ruby/setup-ruby | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- if: matrix.db != '' | ||
run: echo 'DB=${{ matrix.db }}' >> $GITHUB_ENV | ||
- run: sudo echo "127.0.0.1 mysql2gem.example.com" | sudo tee -a /etc/hosts | ||
- run: bash ci/setup.sh | ||
- run: bundle exec rake spec |
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