-
Notifications
You must be signed in to change notification settings - Fork 549
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
105 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Test | ||
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 }} | ||
strategy: | ||
matrix: | ||
os: | ||
# Comment out ubuntu-20.04 temporarily, as the oldest mysql is 8.0 on it, there is an issue. | ||
# https://github.com/brianmario/mysql2/issues/1165 | ||
# - ubuntu-20.04 # focal | ||
- ubuntu-18.04 # bionic | ||
# - ubuntu-16.04 # xenial | ||
ruby: | ||
- '3.0' | ||
- 2.7 | ||
- 2.6 | ||
- 2.5 | ||
- 2.4 | ||
- 2.3 | ||
- 2.2 | ||
- 2.1 | ||
db: [''] | ||
allow-failure: [false] | ||
include: | ||
# Allow failure due to Mysql2::Error: Unknown system variable 'session_track_system_variables'. | ||
- {os: ubuntu-16.04, ruby: 2.4, db: mariadb10.0, allow-failure: true} | ||
# Comment out due to .travis_setup.sh freezing. | ||
# - {os: ubuntu-18.04, ruby: 2.4, db: mariadb10.1, allow-failure: false} | ||
# Allow failure due to the issue #1165. | ||
- {os: ubuntu-20.04, ruby: 2.4, db: mariadb10.3, allow-failure: true} | ||
- {os: ubuntu-18.04, ruby: 2.4, db: mysql57, allow-failure: false} | ||
# Allow failure due to the issue #1165. | ||
- {os: ubuntu-20.04, ruby: 2.4, db: mysql80, allow-failure: true} | ||
- {os: ubuntu-18.04, ruby: 'head', db: '', allow-failure: true} | ||
# On the fail-fast: true, it cancels all in-progress jobs | ||
# if any matrix job fails unlike Travis fast_finish. | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# https://github.com/ruby/setup-ruby | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- run: ruby -v | ||
- run: bundle install --without benchmarks development | ||
- 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 .travis_setup.sh | ||
- run: bundle exec rake |
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
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
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,6 +1,6 @@ | ||
root: | ||
host: localhost | ||
username: root | ||
username: root-test | ||
password: | ||
database: test | ||
|
||
|